src/events/SDL_windowevents.c
branchSDL-1.3
changeset 1724 6c63fc2bd986
parent 1722 5daa04d862f1
child 1731 875c3cf1a12c
     1.1 --- a/src/events/SDL_windowevents.c	Thu Jul 06 05:53:32 2006 +0000
     1.2 +++ b/src/events/SDL_windowevents.c	Thu Jul 06 07:17:11 2006 +0000
     1.3 @@ -28,8 +28,8 @@
     1.4  #include "../video/SDL_sysvideo.h"
     1.5  
     1.6  int
     1.7 -SDL_PrivateWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
     1.8 -                       int data2)
     1.9 +SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
    1.10 +                    int data2)
    1.11  {
    1.12      int posted;
    1.13      SDL_Window *window;
    1.14 @@ -51,6 +51,16 @@
    1.15          }
    1.16          window->flags &= ~SDL_WINDOW_SHOWN;
    1.17          break;
    1.18 +    case SDL_WINDOWEVENT_MOVED:
    1.19 +        if (data1 == window->x && data2 == window->y) {
    1.20 +            return 0;
    1.21 +        }
    1.22 +        break;
    1.23 +    case SDL_WINDOWEVENT_RESIZED:
    1.24 +        if (data1 == window->w && data2 == window->h) {
    1.25 +            return 0;
    1.26 +        }
    1.27 +        break;
    1.28      case SDL_WINDOWEVENT_MINIMIZED:
    1.29          if (window->flags & SDL_WINDOW_MINIMIZED) {
    1.30              return 0;