Move Windows related functions to Interface.h (PR #882)

This is not complete as header files from Windows/.. are still included in:

Keyboard.cpp
SerialComms.cpp
Joystick.cpp

But probably these are arch specific and will have to be completely reimplemented elsewhere.
This commit is contained in:
Andrea
2020-11-29 17:30:06 +00:00
committed by GitHub
parent 93346c215f
commit 7ca547479b
19 changed files with 43 additions and 23 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "ParallelPrinter.h"
#include "CardManager.h"
#include "SerialComms.h"
#include "Windows/WinFrame.h"
#include "Interface.h"
CmdLine g_cmdLine;
std::string g_sConfigFile; // INI file to use instead of Registry
+1 -3
View File
@@ -34,7 +34,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "SaveState_Structs_v1.h"
#include "Windows/AppleWin.h"
#include "Interface.h"
#include "Core.h"
#include "CPU.h"
#include "DiskImage.h"
@@ -43,8 +43,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Registry.h"
#include "SaveState.h"
#include "Video.h"
#include "Windows/WinVideo.h"
#include "Windows/WinFrame.h"
#include "YamlHelper.h"
#include "../resource/resource.h"
-3
View File
@@ -1,8 +1,5 @@
#pragma once
// 1.19.0.0 Hard Disk Status/Indicator Light
#define HD_LED 1
UINT GetFrameBufferBorderlessWidth(void);
UINT GetFrameBufferBorderlessHeight(void);
UINT GetFrameBufferBorderWidth(void);
+1 -2
View File
@@ -30,12 +30,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Harddisk.h"
#include "Core.h"
#include "Windows/AppleWin.h"
#include "Interface.h"
#include "CardManager.h"
#include "CPU.h"
#include "DiskImage.h" // ImageError_e, Disk_Status_e
#include "DiskImageHelper.h"
#include "Windows/WinFrame.h"
#include "Memory.h"
#include "Registry.h"
#include "SaveState.h"
+3
View File
@@ -25,6 +25,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "DiskImage.h"
// 1.19.0.0 Hard Disk Status/Indicator Light
#define HD_LED 1
enum HardDrive_e
{
HARDDISK_1 = 0,
+20
View File
@@ -0,0 +1,20 @@
#pragma once
extern HINSTANCE g_hInstance;
extern HWND g_hFrameWindow;
extern BOOL g_bConfirmReboot; // saved PageConfig REGSAVE
extern BOOL g_bMultiMon;
void FrameDrawDiskLEDS(HDC hdc);
void FrameDrawDiskStatus(HDC hdc);
void FrameRefreshStatus(int, bool bUpdateDiskStatus = true);
void FrameUpdateApple2Type();
void FrameSetCursorPosByMousePos();
void VideoRedrawScreen();
void SetFullScreenShowSubunitStatus(bool bShow);
bool GetBestDisplayResolutionForFullScreen(UINT& bestWidth, UINT& bestHeight, UINT userSpecifiedHeight = 0);
int SetViewportScale(int nNewScale, bool bForce = false);
void SetAltEnterToggleFullScreen(bool mode);
void SetLoadedSaveStateFlag(const bool bFlag);
+1 -1
View File
@@ -31,11 +31,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Memory.h"
#include "Interface.h"
#include "Core.h"
#include "CardManager.h"
#include "CPU.h"
#include "Disk.h"
#include "Windows/WinFrame.h"
#include "Harddisk.h"
#include "Joystick.h"
#include "Keyboard.h"
+1 -1
View File
@@ -49,7 +49,7 @@ Etc.
#include "Core.h" // g_SynchronousEventMgr
#include "CardManager.h"
#include "CPU.h"
#include "Windows/WinFrame.h" // FrameSetCursorPosByMousePos()
#include "Interface.h" // FrameSetCursorPosByMousePos()
#include "Log.h"
#include "Memory.h"
#include "Video.h"
+1 -1
View File
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "NTSC_CharSet.h"
#include "Windows/AppleWin.h"
#include "Interface.h"
#include "Core.h"
#include "../resource/resource.h"
#include "Video.h"
+1 -1
View File
@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Pravets.h"
#include "Core.h"
#include "Windows/WinFrame.h"
#include "Interface.h"
#include "Keyboard.h"
#include "Tape.h"
+1 -2
View File
@@ -31,12 +31,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "SaveState.h"
#include "YamlHelper.h"
#include "Windows/AppleWin.h"
#include "Interface.h"
#include "CardManager.h"
#include "CPU.h"
#include "Debug.h"
#include "Disk.h"
#include "Windows/WinFrame.h"
#include "Joystick.h"
#include "Keyboard.h"
#include "LanguageCard.h"
+1 -1
View File
@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "SoundCore.h"
#include "Core.h"
#include "Windows/WinFrame.h"
#include "Interface.h"
#include "Log.h"
#include "Speaker.h"
+1 -2
View File
@@ -31,11 +31,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Speaker.h"
#include "Core.h"
#include "CPU.h"
#include "Windows/WinFrame.h"
#include "Interface.h"
#include "Log.h"
#include "Memory.h"
#include "SoundCore.h"
#include "Windows/WinVideo.h" // VideoRedrawScreen()
#include "YamlHelper.h"
#include "Riff.h"
+1 -1
View File
@@ -43,7 +43,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "SerialComms.h"
#include "Speaker.h"
#include "Mockingboard.h"
#include "Windows/WinFrame.h"
#include "Interface.h"
#include "Configuration/IPropertySheet.h"
#include "Tfe/Tfe.h"
+1 -1
View File
@@ -32,7 +32,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Core.h"
#include "CPU.h"
#include "Frame.h"
#include "Windows/WinFrame.h"
#include "Interface.h"
#include "Log.h"
#include "Memory.h"
#include "Registry.h"
-3
View File
@@ -1,8 +1,5 @@
#pragma once
// 1.19.0.0 Hard Disk Status/Indicator Light
#define HD_LED 1
// Win32
extern HWND g_hFrameWindow;
extern int g_nViewportCX;