Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
cf1adee2
Commit
cf1adee2
authored
Oct 13, 2011
by
Ryan C. Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure window->driverdata is set before we might need it.
Thanks to Mako_energy for the fix!
parent
f2923fca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
SDL_windowswindow.c
src/video/windows/SDL_windowswindow.c
+2
-1
No files found.
src/video/windows/SDL_windowswindow.c
View file @
cf1adee2
...
@@ -88,6 +88,8 @@ SetupWindowData(_THIS, SDL_Window * window, HWND hwnd, SDL_bool created)
...
@@ -88,6 +88,8 @@ SetupWindowData(_THIS, SDL_Window * window, HWND hwnd, SDL_bool created)
data
->
mouse_pressed
=
SDL_FALSE
;
data
->
mouse_pressed
=
SDL_FALSE
;
data
->
videodata
=
videodata
;
data
->
videodata
=
videodata
;
window
->
driverdata
=
data
;
/* Associate the data with the window */
/* Associate the data with the window */
if
(
!
SetProp
(
hwnd
,
TEXT
(
"SDL_WindowData"
),
data
))
{
if
(
!
SetProp
(
hwnd
,
TEXT
(
"SDL_WindowData"
),
data
))
{
ReleaseDC
(
hwnd
,
data
->
hdc
);
ReleaseDC
(
hwnd
,
data
->
hdc
);
...
@@ -183,7 +185,6 @@ SetupWindowData(_THIS, SDL_Window * window, HWND hwnd, SDL_bool created)
...
@@ -183,7 +185,6 @@ SetupWindowData(_THIS, SDL_Window * window, HWND hwnd, SDL_bool created)
}
}
/* All done! */
/* All done! */
window
->
driverdata
=
data
;
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment