projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
egl: Add Haiku code and support
[mesa.git]
/
src
/
gallium
/
targets
/
graw-gdi
/
graw_gdi.c
diff --git
a/src/gallium/targets/graw-gdi/graw_gdi.c
b/src/gallium/targets/graw-gdi/graw_gdi.c
index 17ca2a761cabf61aef25902a31eee67af5c778bf..99d8641d6b1162a3b8a9eea502836074d76c2170 100644
(file)
--- a/
src/gallium/targets/graw-gdi/graw_gdi.c
+++ b/
src/gallium/targets/graw-gdi/graw_gdi.c
@@
-66,7
+66,7
@@
graw_create_window_and_screen(int x,
{
struct sw_winsys *winsys = NULL;
struct pipe_screen *screen = NULL;
{
struct sw_winsys *winsys = NULL;
struct pipe_screen *screen = NULL;
- WNDCLASSEX wc
= {sizeof(wc)}
;
+ WNDCLASSEX wc;
UINT style = WS_VISIBLE | WS_TILEDWINDOW;
RECT rect;
HWND hWnd = NULL;
UINT style = WS_VISIBLE | WS_TILEDWINDOW;
RECT rect;
HWND hWnd = NULL;
@@
-83,6
+83,8
@@
graw_create_window_and_screen(int x,
if (screen == NULL)
goto fail;
if (screen == NULL)
goto fail;
+ memset(&wc, 0, sizeof wc);
+ wc.cbSize = sizeof wc;
wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = window_proc;
wc.lpszClassName = "graw-gdi";
wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = window_proc;
wc.lpszClassName = "graw-gdi";