Skip to content

Commit

Permalink
Possible OpenPandora port setting/fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjoffe committed Mar 31, 2018
1 parent 46bab82 commit 82495b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ bool GraphInit( bool bFullScreen, int iWidth, int iHeight, int nForceScale )
// Initialize graphics library
SDL_Init(SDL_INIT_VIDEO);

#ifdef PANDORA
//[dj2018-03] Not sure if this is quite the right way to go, but this is based roughly on
// diff patch of Magic Sam for OpenPandora port - https://pyra-handheld.com/boards/threads/dave-gnukem.79533/ and http://repo.openpandora.org/?page=detail&app=davegnukem-magicsam
iWidth = 320; iHeight = 200;
#else
// [dj2016-10] Get the user's monitor resolution, and find (basically) largest multiple of 320x200 that fits in
// that size, to make for 'largest possible' gameplay window, that also scales from 320x200 'proportionally' nicely
// (i.e. square aspect ratio of pixels, etc.).
Expand Down Expand Up @@ -165,6 +170,7 @@ bool GraphInit( bool bFullScreen, int iWidth, int iHeight, int nForceScale )

Log( "GraphInit(): DisplayResolution(%d,%d).\n", max_w, max_h );
}
#endif

SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);

Expand Down

0 comments on commit 82495b3

Please sign in to comment.