comparison TaskManager/Test/test_render/viewerSDL.cpp @ 217:bfdd037aee21 draft

fix
author gongo@localhost.localdomain
date Wed, 04 Feb 2009 22:50:42 +0900
parents 5a4f2497c22d
children 0351818cf0fe
comparison
equal deleted inserted replaced
216:e9a52d68db42 217:bfdd037aee21
22 fprintf(stderr, "Couldn't set GL mode: %s\n", SDL_GetError()); 22 fprintf(stderr, "Couldn't set GL mode: %s\n", SDL_GetError());
23 SDL_Quit(); 23 SDL_Quit();
24 exit(1); 24 exit(1);
25 } 25 }
26 26
27 p = (Uint32*)manager->malloc(screen->pitch*height); 27 p = (Uint32*)manager->allocate(screen->pitch*height);
28 bitmap = SDL_CreateRGBSurfaceFrom((void *)p, 28 bitmap = SDL_CreateRGBSurfaceFrom((void *)p,
29 screen->w, screen->h, 29 screen->w, screen->h,
30 screen->format->BitsPerPixel, 30 screen->format->BitsPerPixel,
31 screen->pitch, 31 screen->pitch,
32 redMask, greenMask, blueMask, alphaMask); 32 redMask, greenMask, blueMask, alphaMask);