screenshot.c
changeset 2121 c86a863485ee
parent 2120 e38d86ea2438
child 2159 3b634157c3b2
equal deleted inserted replaced
2120:e38d86ea2438 2121:c86a863485ee
     6 #include "gfx.h"
     6 #include "gfx.h"
     7 #include "viewport.h"
     7 #include "viewport.h"
     8 #include "player.h"
     8 #include "player.h"
     9 #include "gui.h"
     9 #include "gui.h"
    10 #include "screenshot.h"
    10 #include "screenshot.h"
       
    11 
       
    12 char _screenshot_format_name[8];
       
    13 uint _num_screenshot_formats;
       
    14 uint _cur_screenshot_format;
    11 
    15 
    12 // called by the ScreenShot proc to generate screenshot lines.
    16 // called by the ScreenShot proc to generate screenshot lines.
    13 typedef void ScreenshotCallback(void *userdata, Pixel *buf, uint y, uint pitch, uint n);
    17 typedef void ScreenshotCallback(void *userdata, Pixel *buf, uint y, uint pitch, uint n);
    14 typedef bool ScreenshotHandlerProc(const char *name, ScreenshotCallback *callb, void *userdata, uint w, uint h, int pixelformat, const Colour *palette);
    18 typedef bool ScreenshotHandlerProc(const char *name, ScreenshotCallback *callb, void *userdata, uint w, uint h, int pixelformat, const Colour *palette);
    15 
    19