diff options
author | Filippos Karapetis | 2011-10-28 22:54:02 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-28 22:54:02 +0300 |
commit | 1cc30572e6807a701a560a7a79d2637bb14e1439 (patch) | |
tree | 89e2fbdada9b2c39f415016669152188470d91fc /engines/sci/graphics | |
parent | 739ceb851dd2f9a8dcc640905727079ca62b0749 (diff) | |
download | scummvm-rg350-1cc30572e6807a701a560a7a79d2637bb14e1439.tar.gz scummvm-rg350-1cc30572e6807a701a560a7a79d2637bb14e1439.tar.bz2 scummvm-rg350-1cc30572e6807a701a560a7a79d2637bb14e1439.zip |
SCI: Remove unneeded casts (thanks to wjp for pointing that out)
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/text32.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp index ff26845c51..2981a574b7 100644 --- a/engines/sci/graphics/text32.cpp +++ b/engines/sci/graphics/text32.cpp @@ -87,8 +87,8 @@ reg_t GfxText32::createTextBitmap(reg_t textObject, uint16 maxWidth, uint16 maxH byte *bitmap = memoryPtr + BITMAP_HEADER_SIZE; // Save totalWidth, totalHeight - WRITE_LE_UINT16((void *)memoryPtr, width); - WRITE_LE_UINT16((void *)(memoryPtr + 2), height); + WRITE_LE_UINT16(memoryPtr, width); + WRITE_LE_UINT16(memoryPtr + 2, height); int16 charCount = 0; uint16 curX = 0, curY = 0; @@ -141,8 +141,8 @@ void GfxText32::drawTextBitmap(reg_t textObject) { uint16 textX = planeRect.left + x; uint16 textY = planeRect.top + y; // Get totalWidth, totalHeight - uint16 width = READ_LE_UINT16((void *)memoryPtr); - uint16 height = READ_LE_UINT16((void *)(memoryPtr + 2)); + uint16 width = READ_LE_UINT16(memoryPtr); + uint16 height = READ_LE_UINT16(memoryPtr + 2); // Upscale the coordinates/width if the fonts are already upscaled if (_screen->fontIsUpscaled()) { |