Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11image.c @ 551:b0c5a13a4243
Doh! Compile error if there was no X11 shared image support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 02 Dec 2002 01:47:03 +0000 |
parents | f6ffac90895c |
children | 6399f4e90211 |
comparison
equal
deleted
inserted
replaced
550:0ac20b67c2c7 | 551:b0c5a13a4243 |
---|---|
101 screen->pixels = NULL; | 101 screen->pixels = NULL; |
102 goto error; | 102 goto error; |
103 } | 103 } |
104 this->UpdateRects = X11_MITSHMUpdate; | 104 this->UpdateRects = X11_MITSHMUpdate; |
105 } | 105 } |
106 if(!use_mitshm) | |
106 #endif /* not NO_SHARED_MEMORY */ | 107 #endif /* not NO_SHARED_MEMORY */ |
107 if(!use_mitshm) { | 108 { |
108 int bpp; | 109 int bpp; |
109 screen->pixels = malloc(screen->h*screen->pitch); | 110 screen->pixels = malloc(screen->h*screen->pitch); |
110 if ( screen->pixels == NULL ) { | 111 if ( screen->pixels == NULL ) { |
111 SDL_OutOfMemory(); | 112 SDL_OutOfMemory(); |
112 return -1; | 113 return -1; |