src/video/x11/SDL_x11modes.c
changeset 2920 cdb01906cb7e
parent 2916 ffdd533f7add
child 2945 e38423786728
equal deleted inserted replaced
2919:2f91a3847ae8 2920:cdb01906cb7e
   155         }
   155         }
   156         displaydata->screen = screen;
   156         displaydata->screen = screen;
   157         displaydata->visual = vinfo.visual;
   157         displaydata->visual = vinfo.visual;
   158         displaydata->depth = vinfo.depth;
   158         displaydata->depth = vinfo.depth;
   159 
   159 
   160         displaydata->scanline_pad = SDL_BYTESPERPIXEL(mode.format)*8;
   160         displaydata->scanline_pad = SDL_BYTESPERPIXEL(mode.format) * 8;
   161         pixmapFormats = XListPixmapFormats(data->display, &n);
   161         pixmapFormats = XListPixmapFormats(data->display, &n);
   162         if (pixmapFormats) {
   162         if (pixmapFormats) {
   163             for (i = 0; i < n; ++i) {
   163             for (i = 0; i < n; ++i) {
   164                 if (pixmapFormats[i].depth == displaydata->depth) {
   164                 if (pixmapFormats[i].depth == displaydata->depth) {
   165                     displaydata->scanline_pad = pixmapFormats[i].scanline_pad;
   165                     displaydata->scanline_pad = pixmapFormats[i].scanline_pad;