aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/gfx/gfx_driver.cpp10
-rw-r--r--engines/sci/gfx/operations.cpp18
2 files changed, 14 insertions, 14 deletions
diff --git a/engines/sci/gfx/gfx_driver.cpp b/engines/sci/gfx/gfx_driver.cpp
index 96a14f63da..961eecc6fd 100644
--- a/engines/sci/gfx/gfx_driver.cpp
+++ b/engines/sci/gfx/gfx_driver.cpp
@@ -78,7 +78,7 @@ GfxDriver::~GfxDriver() {
static void drawProc(int x, int y, int c, void *data) {
GfxDriver *drv = (GfxDriver *)data;
- uint8 *p = drv->getVisual0();
+ byte *p = drv->getVisual0();
p[y * 320* drv->getMode()->xfact + x] = c;
}
@@ -224,7 +224,7 @@ int GfxDriver::setStaticBuffer(gfx_pixmap_t *pic, gfx_pixmap_t *priority) {
byte *GfxDriver::createCursor(gfx_pixmap_t *pointer) {
int linewidth = pointer->width;
int lines = pointer->height;
- byte *data = new uint8[linewidth*lines];
+ byte *data = new byte[linewidth*lines];
byte *linebase = data, *pos;
byte *src = pointer->index_data;
@@ -232,7 +232,7 @@ byte *GfxDriver::createCursor(gfx_pixmap_t *pointer) {
pos = linebase;
for (int xc = 0; xc < pointer->index_width; xc++) {
- uint8 color = *src;
+ byte color = *src;
// FIXME: The palette size check is a workaround for cursors using non-palette colour GFX_CURSOR_TRANSPARENT
// Note that some cursors don't have a palette in SQ5
if (pointer->palette && color < pointer->palette->size())
@@ -254,11 +254,11 @@ int GfxDriver::setPointer(gfx_pixmap_t *pointer, Common::Point *hotspot) {
if ((pointer == NULL) || (hotspot == NULL)) {
g_system->showMouse(false);
} else {
- uint8 *cursorData = createCursor(pointer);
+ byte *cursorData = createCursor(pointer);
// FIXME: The palette size check is a workaround for cursors using non-palette colour GFX_CURSOR_TRANSPARENT
// Note that some cursors don't have a palette in SQ5
- uint8 color_key = GFX_CURSOR_TRANSPARENT;
+ byte color_key = GFX_CURSOR_TRANSPARENT;
if ((pointer->color_key != GFX_PIXMAP_COLOR_KEY_NONE) && (pointer->palette && (unsigned int)pointer->color_key < pointer->palette->size()))
color_key = pointer->palette->getColor(pointer->color_key).parent_index;
// Some cursors in SQ5 don't have a palette. The cursor palette seems to use 64 colors, so setting the color key to 63 works
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp
index 2ffdf5056e..cb73771528 100644
--- a/engines/sci/gfx/operations.cpp
+++ b/engines/sci/gfx/operations.cpp
@@ -206,7 +206,7 @@ static int _gfxop_install_pixmap(GfxDriver *driver, gfx_pixmap_t *pxm) {
// TODO: We probably want to only update the colours used by this pixmap
// here. This will require updating the 'dirty' system.
- uint8 paletteData[4*256];
+ byte paletteData[4*256];
const uint paletteSize = driver->getMode()->palette->size();
for (uint i = 0; i < paletteSize; ++i) {
const PaletteEntry& c = (*driver->getMode()->palette)[i];
@@ -989,17 +989,17 @@ int gfxop_draw_box(GfxState *state, rect_t box, gfx_color_t color1, gfx_color_t
draw_color1.priority = draw_color2.priority = color1.priority;
if (draw_color1.mask & GFX_MASK_VISUAL) {
- draw_color1.visual.r = (uint8) COLOR_MIX(visual.r, mod_offset);
- draw_color1.visual.g = (uint8) COLOR_MIX(visual.g, mod_offset);
- draw_color1.visual.b = (uint8) COLOR_MIX(visual.b, mod_offset);
- draw_color1.alpha = (uint8) COLOR_MIX(alpha, mod_offset);
+ draw_color1.visual.r = (byte) COLOR_MIX(visual.r, mod_offset);
+ draw_color1.visual.g = (byte) COLOR_MIX(visual.g, mod_offset);
+ draw_color1.visual.b = (byte) COLOR_MIX(visual.b, mod_offset);
+ draw_color1.alpha = (byte) COLOR_MIX(alpha, mod_offset);
mod_offset += mod_breadth;
- draw_color2.visual.r = (uint8) COLOR_MIX(visual.r, mod_offset);
- draw_color2.visual.g = (uint8) COLOR_MIX(visual.g, mod_offset);
- draw_color2.visual.b = (uint8) COLOR_MIX(visual.b, mod_offset);
- draw_color2.alpha = (uint8) COLOR_MIX(alpha, mod_offset);
+ draw_color2.visual.r = (byte) COLOR_MIX(visual.r, mod_offset);
+ draw_color2.visual.g = (byte) COLOR_MIX(visual.g, mod_offset);
+ draw_color2.visual.b = (byte) COLOR_MIX(visual.b, mod_offset);
+ draw_color2.alpha = (byte) COLOR_MIX(alpha, mod_offset);
}
if (reverse)
return drv->drawFilledRect(new_box, draw_color2, draw_color1, driver_shade_type);