Compile fix for Win32
This commit is contained in:
parent
5fe88d6371
commit
9fe1abe9e3
1 changed files with 3 additions and 3 deletions
|
@ -460,7 +460,7 @@ void gfxEmulatorSetParentWindow(HWND hwnd) {
|
||||||
winPriv * priv;
|
winPriv * priv;
|
||||||
|
|
||||||
priv = (winPriv *)g->priv;
|
priv = (winPriv *)g->priv;
|
||||||
priv->mouseubttons = buttons;
|
priv->mousebuttons = buttons;
|
||||||
priv->mousex = x;
|
priv->mousex = x;
|
||||||
priv->mousey = y;
|
priv->mousey = y;
|
||||||
if ((gmvmt(priv->mouse)->d.flags & GMOUSE_VFLG_NOPOLL)) // For normal setup this is always TRUE
|
if ((gmvmt(priv->mouse)->d.flags & GMOUSE_VFLG_NOPOLL)) // For normal setup this is always TRUE
|
||||||
|
@ -625,7 +625,7 @@ static LRESULT myWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
mousemove:
|
mousemove:
|
||||||
if (priv->capfn)
|
if (priv->capfn)
|
||||||
priv->capfn(hWnd, g, btns, (coord_t)LOWORD(lParam), (coord_t)HIWORD(lParam))
|
priv->capfn(hWnd, g, btns, (coord_t)LOWORD(lParam), (coord_t)HIWORD(lParam));
|
||||||
if (priv->mouseenabled) {
|
if (priv->mouseenabled) {
|
||||||
priv->mousebuttons = btns;
|
priv->mousebuttons = btns;
|
||||||
priv->mousex = (coord_t)LOWORD(lParam);
|
priv->mousex = (coord_t)LOWORD(lParam);
|
||||||
|
@ -878,7 +878,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||||
|
|
||||||
// Create the associated mouse
|
// Create the associated mouse
|
||||||
#if GINPUT_NEED_MOUSE
|
#if GINPUT_NEED_MOUSE
|
||||||
priv->mouseenabled = hwndParent ? FALSE : TRUE;
|
priv->mouseenabled = hWndParent ? FALSE : TRUE;
|
||||||
priv->mouse = (GMouse *)gdriverRegister((const GDriverVMT const *)GMOUSE_DRIVER_VMT, g);
|
priv->mouse = (GMouse *)gdriverRegister((const GDriverVMT const *)GMOUSE_DRIVER_VMT, g);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue