forked from audetto/AppleWin
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
undo some #ifdef intrusions into upstream code
- Loading branch information
sh95014
committed
Jan 1, 2022
1 parent
950eec0
commit e00a81e
Showing
6 changed files
with
113 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// sdldummyframe.cpp | ||
// Mariani | ||
// | ||
// Created by sh95014 on 1/2/22. | ||
// | ||
|
||
#include "StdAfx.h" | ||
#include "sdldummyframe.hpp" | ||
|
||
namespace sa2 | ||
{ | ||
|
||
SDLDummyFrame::SDLDummyFrame(const common2::EmulatorOptions & options) | ||
: SDLFrame(options) | ||
{ | ||
} | ||
|
||
void SDLDummyFrame::Initialize(bool resetVideoState) | ||
{ | ||
SDLFrame::Initialize(resetVideoState); | ||
} | ||
|
||
void SDLDummyFrame::VideoPresentScreen() | ||
{ | ||
} | ||
|
||
void SDLDummyFrame::GetRelativeMousePosition(const SDL_MouseMotionEvent & motion, double & x, double & y) const | ||
{ | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// sdldummyframe.hpp | ||
// Mariani | ||
// | ||
// Created by sh95014 on 1/2/22. | ||
// | ||
|
||
#pragma once | ||
|
||
#include "sdlframe.h" | ||
|
||
namespace common2 | ||
{ | ||
struct EmulatorOptions; | ||
} | ||
|
||
namespace sa2 | ||
{ | ||
|
||
class SDLDummyFrame : public SDLFrame | ||
{ | ||
public: | ||
SDLDummyFrame(const common2::EmulatorOptions & options); | ||
|
||
void VideoPresentScreen() override; | ||
void Initialize(bool resetVideoState) override; | ||
|
||
protected: | ||
void GetRelativeMousePosition(const SDL_MouseMotionEvent & motion, double & x, double & y) const override; | ||
|
||
private: | ||
// FIXME: without this hack the app crashes randomly elsewhere | ||
Uint8 padding[1]; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters