X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fmain.c;h=19e8319b52f38c16a12a5dbc264fa0685c9ad212;hp=59fa24a608650cbc8ddcbaac97f94e325c9d7410;hb=36dfb7876314f16d401e2016e55d126fb264d1df;hpb=d8a2f79b8743b44a0728902293acf101c9b2d882 diff --git a/frontend/main.c b/frontend/main.c index 59fa24a6..19e8319b 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -255,7 +255,16 @@ do_state_slot: plat_step_volume(emu_action == SACTION_VOLUME_UP); return; case SACTION_MINIMIZE: + if (GPU_close != NULL) + GPU_close(); + plat_minimize(); + + if (GPU_open != NULL) { + ret = GPU_open(&gpuDisp, "PCSX", NULL); + if (ret) + fprintf(stderr, "GPU_open returned %d\n", ret); + } return; #endif default: