Missing in_window in SDL 1.2 SVN

Hello !

Latest SVN version of SDL 1.2 does not compile because
of a missing in_window variable. It was removed in revision 4478,
i think by accident.

To get it back use this patch :

Index: src/video/wincommon/SDL_sysevents.c===================================================================
β€” src/video/wincommon/SDL_sysevents.c (revision 4481)
+++ src/video/wincommon/SDL_sysevents.c (working copy)
@@ -363,6 +363,7 @@
{
SDL_VideoDevice *this = current_video;
static int mouse_pressed = 0;

  • static int in_window = 0;
    #ifdef WMMSG_DEBUG
    fprintf(stderr, "Received windows message: ");
    if ( msg > MAX_WMMSG ) {

CU

Torsten Giebl wrote:

Latest SVN version of SDL 1.2 does not compile because
of a missing in_window variable. It was removed in revision 4478,
i think by accident.

To get it back use this patch :

It would be better to apply the missing part of the original patch. I
have made a new patch which does this, attached to the original bug:

http://bugzilla.libsdl.org/show_bug.cgi?id=611

To get the patch directly it’s:

http://bugzilla.libsdl.org/attachment.cgi?id=316