22 #ifndef AGS_PLUGINS_AGSCREDITZ_DRAWING_H 23 #define AGS_PLUGINS_AGSCREDITZ_DRAWING_H 25 #include "common/scummsys.h" 29 namespace AGSCreditz {
33 void drawPixel(uint8 *bitmap, int32 x, int32 y,
34 uint col, int32 pitch, int32 coldepth) {
37 bitmap[x + y * pitch] = col;
40 *((uint16 *)(bitmap + y * pitch + x * 2)) = col;
43 *((uint32 *)(bitmap + y * pitch + x * 4)) = col;
48 uint getPixelColor(uint8 *bitmap, int32 x, int32 y,
49 int32 pitch, int32 coldepth) {
52 return bitmap[x + y * pitch];
54 return *((uint16 *)(bitmap + y * pitch + x * 2));
56 return *((uint32 *)(bitmap + y * pitch + x * 4));