22 #ifndef BACKENDS_GRAPHICS_ATARI_VIDEL_H 23 #define BACKENDS_GRAPHICS_ATARI_VIDEL_H 25 #include "backends/graphics/atari/atari-graphics.h" 27 #include "backends/graphics/atari/atari-c2p-asm.h" 28 #include "backends/graphics/atari/atari-graphics-asm.h" 29 #include "common/system.h" 51 const byte *pChunky = (
const byte *)srcSurface.
getBasePtr(subRect.
left, subRect.top);
52 const byte *pChunkyEnd = (
const byte *)srcSurface.
getBasePtr(subRect.
right, subRect.bottom-1);
54 byte *pScreen = (byte *)dstSurface.
getPixels() + destY * dstSurface.
pitch + destX * dstBitsPerPixel/8;
56 if (dstBitsPerPixel == 8) {
59 asm_c2p1x1_8(pChunky, pChunkyEnd, pScreen);
61 }
else if (srcSurface.
pitch == dstSurface.
pitch/2) {
62 asm_c2p1x1_8_tt(pChunky, pChunkyEnd, pScreen, dstSurface.
pitch);
75 asm_c2p1x1_4(pChunky, pChunkyEnd, pScreen);
92 if (dstBitsPerPixel == 4) {
98 }
else if (dstBitsPerPixel == 8) {
107 Common::Rect alignRect(
int x,
int y,
int w,
int h)
const override {
108 return Common::Rect(x & (-16), y, (x + w + 15) & (-16), y + h);
int32 pitch
Definition: surface.h:83
int16 right
Definition: rect.h:146
const void * getBasePtr(int x, int y) const
Definition: surface.h:138
int16 width() const
Definition: rect.h:191
Definition: atari-graphics-videl.h:31
int16 left
Definition: rect.h:145
Definition: atari-graphics.h:40
const void * getPixels() const
Definition: surface.h:108
int16 height() const
Definition: rect.h:192