0b3e57d934
This is more and more similar to AppleWin's logic. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
31 lines
553 B
C++
31 lines
553 B
C++
#pragma once
|
|
|
|
#include "frontends/sdl/sdlframe.h"
|
|
|
|
namespace common2
|
|
{
|
|
struct EmulatorOptions;
|
|
}
|
|
|
|
namespace sa2
|
|
{
|
|
|
|
class SDLRendererFrame : public SDLFrame
|
|
{
|
|
public:
|
|
SDLRendererFrame(const common2::EmulatorOptions & options);
|
|
|
|
void VideoPresentScreen() override;
|
|
|
|
protected:
|
|
void GetRelativeMousePosition(const SDL_MouseMotionEvent & motion, double & x, double & y) const override;
|
|
|
|
private:
|
|
SDL_Rect myRect;
|
|
int myPitch;
|
|
|
|
std::shared_ptr<SDL_Renderer> myRenderer;
|
|
std::shared_ptr<SDL_Texture> myTexture;
|
|
};
|
|
|
|
}
|