Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11modes.c @ 5152:be02be2ea897
Making the API simpler, removed support for palettized video modes and textures.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Feb 2011 21:23:43 -0800 |
parents | 844b5ef4b149 |
children | 073b86030262 |
comparison
equal
deleted
inserted
replaced
5151:5429daf5e3f9 | 5152:be02be2ea897 |
---|---|
132 if (get_visualinfo(data->display, screen, &vinfo) < 0) { | 132 if (get_visualinfo(data->display, screen, &vinfo) < 0) { |
133 continue; | 133 continue; |
134 } | 134 } |
135 | 135 |
136 mode.format = X11_GetPixelFormatFromVisualInfo(data->display, &vinfo); | 136 mode.format = X11_GetPixelFormatFromVisualInfo(data->display, &vinfo); |
137 if (SDL_ISPIXELFORMAT_INDEXED(mode.format)) { | |
138 /* We don't support palettized modes now */ | |
139 continue; | |
140 } | |
137 mode.w = DisplayWidth(data->display, screen); | 141 mode.w = DisplayWidth(data->display, screen); |
138 mode.h = DisplayHeight(data->display, screen); | 142 mode.h = DisplayHeight(data->display, screen); |
139 mode.refresh_rate = 0; | 143 mode.refresh_rate = 0; |
140 mode.driverdata = NULL; | 144 mode.driverdata = NULL; |
141 | 145 |