22 #ifndef BACKENDS_GRAPHICS_ATARI_SURFACE_H 23 #define BACKENDS_GRAPHICS_ATARI_SURFACE_H 25 #include "graphics/managed_surface.h" 27 #include "backends/graphics/atari/atari-supervidel.h" 41 void free()
final override;
46 virtual void copyRectToSurface(
const void *buffer,
int srcPitch,
int destX,
int destY,
int width,
int height);
48 assert(subRect.
left % 16 == 0);
62 int getBitsPerPixel()
const {
63 return format == PIXELFORMAT_RGB121 ? 4 : 8;
66 static Common::Rect alignRect(
int x1,
int y1,
int x2,
int y2) {
68 return g_hasSuperVidel
70 : Common::Rect(x1 & (-16), y1, (x2 + 15) & (-16), y2);
74 return g_hasSuperVidel
83 SuperVidelSurface() =
default;
89 void copyRectToSurface(
const void *buffer,
int srcPitch,
int destX,
int destY,
int width,
int height)
override {
100 #ifdef USE_SV_BLITTER 101 g_blitMask = (
const byte *)srcMask.
getBasePtr(subRect.
left, subRect.top);
104 #ifdef USE_SV_BLITTER 105 g_blitMask =
nullptr;
111 void AtariSurfaceInit();
112 void AtariSurfaceDeinit();
114 #endif // BACKENDS_GRAPHICS_ATARI_SURFACE_H Definition: managed_surface.h:51
int32 pitch
Definition: surface.h:83
void copyRectToSurfaceWithKey(const void *buffer, int srcPitch, int destX, int destY, int width, int height, uint32 key)
Definition: managed_surface.h:814
T left
Definition: rect.h:170
virtual void create(int16 width, int16 height)
void create(int16 width, int16 height, const Graphics::PixelFormat &pixelFormat) final override
T width() const
Definition: rect.h:217
T height() const
Definition: rect.h:218
const void * getBasePtr(int x, int y) const
Definition: surface.h:138
Definition: atari-surface.h:33
T right
Definition: rect.h:171
void addDirtyRect(const Common::Rect &r) final override
Definition: atari-surface.h:43
void free() final override
PixelFormat format
Definition: surface.h:95
PixelFormat & format
Definition: managed_surface.h:134
void copyRectToSurface(const void *buffer, int srcPitch, int destX, int destY, int width, int height)
Definition: managed_surface.h:794