src/video/x11/SDL_x11window.c
changeset 5981 75caa8a7d559
parent 5535 96594ac5fd1a
child 6023 6279958d571d
     1.1 --- a/src/video/x11/SDL_x11window.c	Wed Oct 12 20:01:09 2011 -0400
     1.2 +++ b/src/video/x11/SDL_x11window.c	Thu Oct 13 01:08:30 2011 -0400
     1.3 @@ -86,31 +86,6 @@
     1.4      return count;
     1.5  }
     1.6  
     1.7 -static void
     1.8 -X11_GetDisplaySize(_THIS, SDL_Window * window, int *w, int *h)
     1.9 -{
    1.10 -    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
    1.11 -    SDL_DisplayData *displaydata =
    1.12 -        (SDL_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata;
    1.13 -    XWindowAttributes attr;
    1.14 -
    1.15 -    XGetWindowAttributes(data->display, RootWindow(data->display, displaydata->screen), &attr);
    1.16 -    if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.17 -        /* The bounds when this window is visible is the fullscreen mode */
    1.18 -        SDL_DisplayMode fullscreen_mode;
    1.19 -        if (SDL_GetWindowDisplayMode(window, &fullscreen_mode) == 0) {
    1.20 -            attr.width = fullscreen_mode.w;
    1.21 -            attr.height = fullscreen_mode.h;
    1.22 -        }
    1.23 -    }
    1.24 -    if (w) {
    1.25 -        *w = attr.width;
    1.26 -    }
    1.27 -    if (h) {
    1.28 -        *h = attr.height;
    1.29 -    }
    1.30 -}
    1.31 -
    1.32  static int
    1.33  SetupWindowData(_THIS, SDL_Window * window, Window w, BOOL created)
    1.34  {
    1.35 @@ -320,7 +295,6 @@
    1.36      xattr.border_pixel = 0;
    1.37  
    1.38      if (visual->class == DirectColor) {
    1.39 -        Status status;
    1.40          XColor *colorcells;
    1.41          int i;
    1.42          int ncolors;
    1.43 @@ -757,7 +731,6 @@
    1.44  {
    1.45      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
    1.46      Display *display = data->videodata->display;
    1.47 -    int x, y;
    1.48  
    1.49      XMoveWindow(display, data->xwindow, window->x, window->y);
    1.50      XFlush(display);
    1.51 @@ -952,7 +925,7 @@
    1.52      int ncolors;
    1.53      int rmask, gmask, bmask;
    1.54      int rshift, gshift, bshift;
    1.55 -    int i, j;
    1.56 +    int i;
    1.57  
    1.58      if (visual->class != DirectColor) {
    1.59          SDL_SetError("Window doesn't have DirectColor visual");