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=bb6aaa95fdbb2f74415a2083bbe03e0518e2c42c;hb=cb88320b4ddbfd8c1714f9a6cba31543a585a8cd;hpb=38c2028e228dcf17f3b4b0ac7e6984d1e1c6df79 diff --git a/frontend/main.c b/frontend/main.c index bb6aaa95..19e8319b 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -130,9 +130,6 @@ static void set_default_paths(void) strcpy(Config.Pad1, "builtin_pad"); strcpy(Config.Pad2, "builtin_pad"); strcpy(Config.Net, "Disabled"); -#if defined(__arm__) && !defined(__ARM_ARCH_7A__) /* XXX */ - strcpy(Config.Gpu, "gpu_unai.so"); -#endif snprintf(Config.PatchesDir, sizeof(Config.PatchesDir), "." PATCHES_DIR); } @@ -258,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: