Something that's been bugging me for a while, and I finally decided to do something about it: fullscreen toggle never worked on Windows. I've now made the F key do a three-way toggle between lo-res (ie standard psp resolution), hi-res (psp resolution doubled, so 960 * 544), and fullscreen (well, not exactly fullscreen, it's a window sized to your desktop's work area; if you have a weird sized desktop, you might get clipping).
This commit is contained in:
@@ -250,7 +250,7 @@ typedef enum Buttons
|
||||
JGE_BTN_NEXT, // Right trigger
|
||||
JGE_BTN_FULLSCREEN, // Switch to fullscreen (obviously, PC only)
|
||||
|
||||
JGE_BTN_MAX = JGE_BTN_NEXT + 1
|
||||
JGE_BTN_MAX = JGE_BTN_FULLSCREEN + 1
|
||||
} JButton;
|
||||
|
||||
|
||||
|
||||
@@ -118,7 +118,11 @@ void JGE::HoldKey_NoRepeat(const LocalKeySym sym)
|
||||
else for (keycodes_it it = rng.first; it != rng.second; ++it)
|
||||
{
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
if (JGE_BTN_FULLSCREEN == it->second) JGEToggleFullscreen();
|
||||
if (JGE_BTN_FULLSCREEN == it->second)
|
||||
{
|
||||
JGEToggleFullscreen();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
keyBuffer.push(triplet(*it, true));
|
||||
if (!held(it->second))
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user