Lines Matching refs:surface
33 SDL_Surface *surface; in SDL_DUMMY_CreateWindowFramebuffer() local
40 surface = (SDL_Surface *) SDL_GetWindowData(window, DUMMY_SURFACE); in SDL_DUMMY_CreateWindowFramebuffer()
41 SDL_FreeSurface(surface); in SDL_DUMMY_CreateWindowFramebuffer()
46 surface = SDL_CreateRGBSurface(0, w, h, bpp, Rmask, Gmask, Bmask, Amask); in SDL_DUMMY_CreateWindowFramebuffer()
47 if (!surface) { in SDL_DUMMY_CreateWindowFramebuffer()
52 SDL_SetWindowData(window, DUMMY_SURFACE, surface); in SDL_DUMMY_CreateWindowFramebuffer()
54 *pixels = surface->pixels; in SDL_DUMMY_CreateWindowFramebuffer()
55 *pitch = surface->pitch; in SDL_DUMMY_CreateWindowFramebuffer()
62 SDL_Surface *surface; in SDL_DUMMY_UpdateWindowFramebuffer() local
64 surface = (SDL_Surface *) SDL_GetWindowData(window, DUMMY_SURFACE); in SDL_DUMMY_UpdateWindowFramebuffer()
65 if (!surface) { in SDL_DUMMY_UpdateWindowFramebuffer()
74 SDL_SaveBMP(surface, file); in SDL_DUMMY_UpdateWindowFramebuffer()
81 SDL_Surface *surface; in SDL_DUMMY_DestroyWindowFramebuffer() local
83 surface = (SDL_Surface *) SDL_SetWindowData(window, DUMMY_SURFACE, NULL); in SDL_DUMMY_DestroyWindowFramebuffer()
84 SDL_FreeSurface(surface); in SDL_DUMMY_DestroyWindowFramebuffer()