[SDL] Win32, toggle from full-screen to windowed, advice please.
Sheshadri Mantha
sheshadri.mantha at schange.com
Wed Mar 10 10:16:57 PST 2010
Jamie W wrote:
> Hello,
>
> I'm getting some strange behavior in my win32 app, which uses SDL with
> DirectX8. I'm getting 2 problems:
>
> Problem 1:
>
> When I start my application in full-screen mode, then switch in to windowed
> mode, the mouse pointer becomes confined to the applications' window. I
> tried freeing it with SDL_WM_GrabInput(SDL_GRAB_OFF), but that didn't
> resolve the issue.
>
i had this problem too... in my config, i was creating a window and
passing that window handle to SDL. the fix was to call SetWindowPos
after the call to SDL_SetVideoMode. Also removed one handler to
WM_WINDOWPOSCHANGED (i think it was returning incorrect return code).
regards,
s-
More information about the SDL
mailing list