mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
Take screenshot at each menu enter
This commit is contained in:
parent
7805a9c167
commit
81f51cea98
@ -57,8 +57,11 @@ public:
|
|||||||
switch (which)
|
switch (which)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
this->box->gi->setScreenshot(TheC64->TheDisplay->SurfaceFromC64Display());
|
{
|
||||||
break;
|
SDL_Surface *tmp = SDL_DisplayFormat(Gui::gui->screenshot);
|
||||||
|
|
||||||
|
this->box->gi->setScreenshot(tmp);
|
||||||
|
} break;
|
||||||
case 2:
|
case 2:
|
||||||
case 3:
|
case 3:
|
||||||
case 4:
|
case 4:
|
||||||
|
@ -79,6 +79,7 @@ Gui::Gui()
|
|||||||
this->np = NULL;
|
this->np = NULL;
|
||||||
|
|
||||||
this->focus = NULL;
|
this->focus = NULL;
|
||||||
|
this->screenshot = NULL;
|
||||||
|
|
||||||
this->bg_left = NULL;
|
this->bg_left = NULL;
|
||||||
this->bg_middle = NULL;
|
this->bg_middle = NULL;
|
||||||
@ -155,6 +156,8 @@ Gui::~Gui()
|
|||||||
if (VirtualKeyboard::kbd)
|
if (VirtualKeyboard::kbd)
|
||||||
delete VirtualKeyboard::kbd;
|
delete VirtualKeyboard::kbd;
|
||||||
|
|
||||||
|
SDL_FreeSurface(this->screenshot);
|
||||||
|
|
||||||
SDL_FreeSurface(this->bg_left);
|
SDL_FreeSurface(this->bg_left);
|
||||||
SDL_FreeSurface(this->keyboard);
|
SDL_FreeSurface(this->keyboard);
|
||||||
SDL_FreeSurface(this->bg_middle);
|
SDL_FreeSurface(this->bg_middle);
|
||||||
@ -483,6 +486,9 @@ void Gui::draw(SDL_Surface *where)
|
|||||||
|
|
||||||
void Gui::activate()
|
void Gui::activate()
|
||||||
{
|
{
|
||||||
|
SDL_FreeSurface(this->screenshot);
|
||||||
|
this->screenshot = TheC64->TheDisplay->SurfaceFromC64Display();
|
||||||
|
|
||||||
this->is_active = true;
|
this->is_active = true;
|
||||||
|
|
||||||
this->cur_prefs = ThePrefs;
|
this->cur_prefs = ThePrefs;
|
||||||
|
@ -85,6 +85,7 @@ public:
|
|||||||
bool is_active;
|
bool is_active;
|
||||||
Menu *focus; /* Where the focus goes */
|
Menu *focus; /* Where the focus goes */
|
||||||
Menu *main_menu;
|
Menu *main_menu;
|
||||||
|
SDL_Surface *screenshot;
|
||||||
|
|
||||||
SDL_Surface *background;
|
SDL_Surface *background;
|
||||||
SDL_Surface *main_menu_bg;
|
SDL_Surface *main_menu_bg;
|
||||||
|
Loading…
Reference in New Issue
Block a user