SDL now only scrolls if mouse is within freecraft window

This commit is contained in:
nehalmistry 2002-04-13 16:33:55 +00:00
parent 807bb7ef22
commit 68bbdcf0b2

View file

@ -494,6 +494,8 @@ local void SdlDoEvent(const EventCallback* callbacks, const SDL_Event * event)
case SDL_ACTIVEEVENT:
DebugLevel3("\tFocus changed\n");
InMainWindow = !InMainWindow;
if (!InMainWindow)
HandleMouseExit();
if (!event->active.state) {
InputMouseExit(callbacks,SDL_GetTicks());
}