mirror of
https://github.com/cmosher01/Epple-II.git
synced 2025-01-14 12:33:45 +00:00
fix bitmap saving
This commit is contained in:
parent
7cc1e1d6b9
commit
87290dcc19
@ -515,5 +515,7 @@ void ScreenImage::saveBMP() {
|
||||
struct tm* nowtm = ::localtime(&now);
|
||||
char time[64];
|
||||
::strftime(time, sizeof (time), TIMEFORMAT, nowtm);
|
||||
// TODO fix screenshot SDL_SaveBMP(this->screen, time);
|
||||
SDL_Surface* screenshot = SDL_CreateRGBSurfaceFrom(this->pixels,SCRW,SCRH,32,SCRW*4,0x00FF0000,0x0000FF00,0x000000FF,0xFF000000);
|
||||
SDL_SaveBMP(screenshot, time);
|
||||
SDL_FreeSurface(screenshot);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user