mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-19 04:08:45 +00:00
Added: Alt-F9 to toggle 50% Scan Lines
BugFix: F9, Shift-F9 for next/prev video mode
This commit is contained in:
parent
c2f36d232c
commit
4ef9b47daf
@ -731,6 +731,7 @@ LRESULT CALLBACK FrameWndProc (
|
|||||||
|
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
KeybUpdateCtrlShiftStatus();
|
KeybUpdateCtrlShiftStatus();
|
||||||
|
|
||||||
if ((wparam >= VK_F1) && (wparam <= VK_F8) && (buttondown == -1))
|
if ((wparam >= VK_F1) && (wparam <= VK_F8) && (buttondown == -1))
|
||||||
{
|
{
|
||||||
SetUsingCursor(0);
|
SetUsingCursor(0);
|
||||||
@ -744,26 +745,34 @@ LRESULT CALLBACK FrameWndProc (
|
|||||||
}
|
}
|
||||||
else if (wparam == VK_F9)
|
else if (wparam == VK_F9)
|
||||||
{
|
{
|
||||||
if (GetKeyState(VK_CONTROL) < 0) //CTRL+F9
|
//bool bCtrlDown = (GetKeyState(VK_CONTROL) < 0) ? true : false;
|
||||||
|
//bool bShiftDown = (GetKeyState(VK_SHIFT ) < 0) ? true : false;
|
||||||
|
|
||||||
|
if ( g_bCtrlKey && !g_bShiftKey ) //CTRL+F9
|
||||||
{
|
{
|
||||||
g_nCharsetType++; // Cycle through available charsets (Ctrl + F9)
|
g_nCharsetType++; // Cycle through available charsets (Ctrl + F9)
|
||||||
if (g_nCharsetType >= 3)
|
if (g_nCharsetType >= 3)
|
||||||
|
{
|
||||||
g_nCharsetType = 0;
|
g_nCharsetType = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else // Cycle through available video modes
|
else // Cycle through available video modes
|
||||||
|
if ( g_bAltKey ) // g_bCtrlKey && g_bShiftKey ) // ALT+F9
|
||||||
{
|
{
|
||||||
if (GetKeyState(VK_SHIFT) >= 0) // Backwards
|
g_uHalfScanLines = !g_uHalfScanLines;
|
||||||
{
|
}
|
||||||
if (videotype == 0)
|
else
|
||||||
videotype = VT_NUM_MODES;
|
if ( !g_bShiftKey ) // Backwards??? Drop Down Combo Box is in correct order
|
||||||
videotype--;
|
{
|
||||||
}
|
videotype++;
|
||||||
else // Forwards
|
if (videotype >= VT_NUM_MODES)
|
||||||
{
|
videotype = 0;
|
||||||
videotype++;
|
}
|
||||||
if (videotype >= VT_NUM_MODES)
|
else // Forwards
|
||||||
videotype = 0;
|
{
|
||||||
}
|
if (videotype <= 0)
|
||||||
|
videotype = VT_NUM_MODES;
|
||||||
|
videotype--;
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoReinitialize();
|
VideoReinitialize();
|
||||||
@ -772,7 +781,8 @@ LRESULT CALLBACK FrameWndProc (
|
|||||||
VideoRedrawScreen();
|
VideoRedrawScreen();
|
||||||
g_bDebuggerViewingAppleOutput = true; // +PATCH
|
g_bDebuggerViewingAppleOutput = true; // +PATCH
|
||||||
}
|
}
|
||||||
REGSAVE(TEXT("Video Emulation"),videotype);
|
|
||||||
|
Config_Save_Video();
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ((wparam == VK_F11) && (GetKeyState(VK_CONTROL) >= 0)) // Save state (F11)
|
else if ((wparam == VK_F11) && (GetKeyState(VK_CONTROL) >= 0)) // Save state (F11)
|
||||||
|
Loading…
Reference in New Issue
Block a user