src/video/dummy/SDL_nullrender.c
branchSDL-1.3
changeset 1678 90bf530ced8e
parent 1677 5e4c5e095925
child 1682 7ae8018b2e5d
equal deleted inserted replaced
1677:5e4c5e095925 1678:90bf530ced8e
    43 
    43 
    44 SDL_RenderDriver SDL_DUMMY_RenderDriver = {
    44 SDL_RenderDriver SDL_DUMMY_RenderDriver = {
    45     SDL_DUMMY_CreateRenderer,
    45     SDL_DUMMY_CreateRenderer,
    46     {
    46     {
    47      "minimal",
    47      "minimal",
    48      (SDL_Renderer_Minimal | SDL_Renderer_PresentCopy),
    48      (SDL_Renderer_Minimal | SDL_Renderer_PresentDiscard |
       
    49       SDL_Renderer_PresentCopy),
    49      SDL_TextureBlendMode_None,
    50      SDL_TextureBlendMode_None,
    50      SDL_TextureScaleMode_None,
    51      SDL_TextureScaleMode_None,
    51      0,
    52      0,
    52      {},
    53      {},
    53      0,
    54      0,
   165         (SDL_DUMMY_RenderData *) renderer->driverdata;
   166         (SDL_DUMMY_RenderData *) renderer->driverdata;
   166     SDL_Surface *surface = data->screen;
   167     SDL_Surface *surface = data->screen;
   167 
   168 
   168     if (SDL_getenv("SDL_VIDEO_DUMMY_SAVE_FRAMES")) {
   169     if (SDL_getenv("SDL_VIDEO_DUMMY_SAVE_FRAMES")) {
   169         char file[128];
   170         char file[128];
   170         SDL_snprintf(file, sizeof(file), "SDL_screen-%8.8d.bmp",
   171         SDL_snprintf(file, sizeof(file), "SDL_frame-%8.8d.bmp",
   171                      ++frame_number);
   172                      ++frame_number);
   172         SDL_SaveBMP(surface, file);
   173         SDL_SaveBMP(surface, file);
   173     }
   174     }
   174 }
   175 }
   175 
   176