Browse Source

RetroFW: IPU detection for RetroFW 2.0

RetroFW 2.0 changed the location of the IPU flag
from `/proc/jz/ipu_ratio` to `/proc/jz/ipu`.
pull/520/head
Gleb Mazovetskiy 6 years ago committed by Anders Jenbo
parent
commit
5db59f1c72
  1. 2
      SourceX/miniwin/misc.cpp

2
SourceX/miniwin/misc.cpp

@ -147,7 +147,7 @@ bool SpawnWindow(LPCSTR lpWindowName, int nWidth, int nHeight)
SDL_SetVideoMode(nWidth, nHeight, SDL1_VIDEO_MODE_BPP, flags);
#else // RETROFW
// JZ4760 IPU scaler (e.g. on RG-300 v2/3) - automatic high-quality scaling.
if (access("/proc/jz/ipu_ratio", F_OK) == 0) {
if (access("/proc/jz/ipu", F_OK) == 0 || access("/proc/jz/ipu_ratio", F_OK) == 0) {
SDL_SetVideoMode(nWidth, nHeight, SDL1_VIDEO_MODE_BPP, flags);
} else {
// Other RetroFW devices have 320x480 screens with non-square pixels.

Loading…
Cancel
Save