Lines Matching refs:surface
32 SDL_Surface *surface; in Emscripten_CreateWindowFramebuffer() local
40 surface = data->surface; in Emscripten_CreateWindowFramebuffer()
41 SDL_FreeSurface(surface); in Emscripten_CreateWindowFramebuffer()
47 surface = SDL_CreateRGBSurface(0, w, h, bpp, Rmask, Gmask, Bmask, Amask); in Emscripten_CreateWindowFramebuffer()
48 if (!surface) { in Emscripten_CreateWindowFramebuffer()
53 data->surface = surface; in Emscripten_CreateWindowFramebuffer()
55 *pixels = surface->pixels; in Emscripten_CreateWindowFramebuffer()
56 *pitch = surface->pitch; in Emscripten_CreateWindowFramebuffer()
62 SDL_Surface *surface; in Emscripten_UpdateWindowFramebuffer() local
65 surface = data->surface; in Emscripten_UpdateWindowFramebuffer()
66 if (!surface) { in Emscripten_UpdateWindowFramebuffer()
157 }, surface->w, surface->h, surface->pixels); in Emscripten_UpdateWindowFramebuffer()
179 SDL_FreeSurface(data->surface); in Emscripten_DestroyWindowFramebuffer()
180 data->surface = NULL; in Emscripten_DestroyWindowFramebuffer()