Fix occassional startup crash under Win32 with newmouse
This commit is contained in:
parent
bbdc236967
commit
d4eaafce10
1 changed files with 5 additions and 5 deletions
|
@ -496,16 +496,16 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
|||
while(!(((volatile GDisplay *)g)->flags & GDISP_FLG_READY))
|
||||
Sleep(1);
|
||||
|
||||
sprintf(buf, APP_NAME " - %u", g->systemdisplay+1);
|
||||
SetWindowText(priv->hwnd, buf);
|
||||
ShowWindow(priv->hwnd, SW_SHOW);
|
||||
UpdateWindow(priv->hwnd);
|
||||
|
||||
// Create the associated mouse
|
||||
#if GINPUT_NEED_MOUSE
|
||||
priv->mouse = (GMouse *)gdriverRegister((const GDriverVMT const *)GMOUSE_DRIVER_VMT, g);
|
||||
#endif
|
||||
|
||||
sprintf(buf, APP_NAME " - %u", g->systemdisplay+1);
|
||||
SetWindowText(priv->hwnd, buf);
|
||||
ShowWindow(priv->hwnd, SW_SHOW);
|
||||
UpdateWindow(priv->hwnd);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue