comparison src/video/x11/SDL_x11render.c @ 3044:b36579172f27

Changes to hopefully handle the creation of a colormap for 8 bit PseudoColor visuals in X11
author Bob Pendleton <bob@pendleton.com>
date Thu, 15 Jan 2009 21:35:42 +0000
parents e4a469d6ddab
children 8cbf68bdf81b
comparison
equal deleted inserted replaced
3043:9a20287aaed1 3044:b36579172f27
411 data->pixmap = 411 data->pixmap =
412 XCreatePixmap(renderdata->display, renderdata->window, texture->w, 412 XCreatePixmap(renderdata->display, renderdata->window, texture->w,
413 texture->h, renderdata->depth); 413 texture->h, renderdata->depth);
414 if (data->pixmap == None) { 414 if (data->pixmap == None) {
415 X11_DestroyTexture(renderer, texture); 415 X11_DestroyTexture(renderer, texture);
416 SDL_SetError("XCteatePixmap() failed"); 416 SDL_SetError("XCreatePixmap() failed");
417 return -1; 417 return -1;
418 } 418 }
419 419
420 data->image = 420 data->image =
421 XCreateImage(renderdata->display, renderdata->visual, 421 XCreateImage(renderdata->display, renderdata->visual,