Tidy up linux interface.h.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2020-12-29 09:22:10 +00:00
parent a1ba1d2cd1
commit cdf8573202
6 changed files with 1 additions and 78 deletions

View file

@ -63,7 +63,6 @@ add_library(appleii SHARED
linux/linuxframe.cpp
linux/duplicates/Debug.cpp
linux/duplicates/WinVideo.cpp
linux/duplicates/Joystick.cpp
linux/duplicates/SerialComms.cpp
linux/duplicates/PropertySheet.cpp

View file

@ -1,5 +1,3 @@
#pragma once
void CheckCpu();
extern int g_nAltCharSetOffset; // alternate character set

View file

@ -1,17 +0,0 @@
#include "StdAfx.h"
#include "Video.h"
#include "NTSC.h"
void VideoRefreshScreen ( uint32_t uRedrawWholeScreenVideoMode /* =0*/, bool bRedrawWholeScreen /* =false*/ )
{
if (bRedrawWholeScreen)
{
// uVideoModeForWholeScreen set if:
// . MODE_DEBUG : always
// . MODE_RUNNING : called from VideoRedrawScreen(), eg. during full-speed
if (bRedrawWholeScreen)
NTSC_SetVideoMode(uRedrawWholeScreenVideoMode);
NTSC_VideoRedrawWholeScreen();
}
}

View file

@ -8,28 +8,15 @@
#include <string>
// Resources
HRSRC FindResource(void *, const char * filename, const char *);
// Bitmap
HBITMAP LoadBitmap(HINSTANCE hInstance, const char * filename);
LONG GetBitmapBits(HBITMAP hbit, LONG cb, LPVOID lpvBits);
// Keyboard
BYTE KeybGetKeycode();
BYTE KeybReadData();
BYTE KeybReadFlag();
// Joystick
BYTE JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
BYTE JoyReadPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
// MessageBox
int MessageBox(HWND, const char * text, const char * caption, UINT type);
// Mockingboard
// Sound
void registerSoundBuffer(IDirectSoundBuffer * buffer);
void unregisterSoundBuffer(IDirectSoundBuffer * buffer);

View file

@ -1,5 +1,4 @@
add_executable(testcpu6502
stdafx.cpp
../../source/SynchronousEventManager.cpp
dummy.cpp
TestCPU6502.cpp)

View file

@ -1,43 +0,0 @@
#include "linux/interface.h"
void registerSoundBuffer(IDirectSoundBuffer * buffer)
{
}
void unregisterSoundBuffer(IDirectSoundBuffer * buffer)
{
}
// Resources
HRSRC FindResource(void *, const char * filename, const char *)
{
return HRSRC();
}
// Keyboard
BYTE KeybGetKeycode() { return 0; }
BYTE KeybReadData() { return 0; }
BYTE KeybReadFlag() { return 0; }
// Joystick
BYTE JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft) { return 0; }
BYTE JoyReadPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft) { return 0; }
// MessageBox
int MessageBox(HWND, const char * text, const char * caption, UINT type) { return 0; }
// Bitmap
HBITMAP LoadBitmap(HINSTANCE hInstance, const char * filename)
{
return nullptr;
}
LONG GetBitmapBits(HBITMAP hbit, LONG cb, LPVOID lpvBits)
{
return 0;
}