aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/PalmOS/Src/base_gfx.cpp
diff options
context:
space:
mode:
authorChris Apers2007-09-01 19:08:16 +0000
committerChris Apers2007-09-01 19:08:16 +0000
commit88b74c5c91478ea017fa247a2f92fab957257122 (patch)
treeec98912dc40f3cfd708a798481d1c40731136064 /backends/platform/PalmOS/Src/base_gfx.cpp
parent19fde8da20afcdad723622bb6258090913bfdcf8 (diff)
downloadscummvm-rg350-88b74c5c91478ea017fa247a2f92fab957257122.tar.gz
scummvm-rg350-88b74c5c91478ea017fa247a2f92fab957257122.tar.bz2
scummvm-rg350-88b74c5c91478ea017fa247a2f92fab957257122.zip
Cleanup:remove obsolete files related to old 68k version not supported anymore
svn-id: r28802
Diffstat (limited to 'backends/platform/PalmOS/Src/base_gfx.cpp')
-rw-r--r--backends/platform/PalmOS/Src/base_gfx.cpp79
1 files changed, 1 insertions, 78 deletions
diff --git a/backends/platform/PalmOS/Src/base_gfx.cpp b/backends/platform/PalmOS/Src/base_gfx.cpp
index d45ade4e73..822663c6ab 100644
--- a/backends/platform/PalmOS/Src/base_gfx.cpp
+++ b/backends/platform/PalmOS/Src/base_gfx.cpp
@@ -25,10 +25,6 @@
#include "be_base.h"
-#ifdef PALMOS_68K
-# include <BmpGlue.h>
-#endif
-
/*
* Graphics modes
*
@@ -144,27 +140,6 @@ void OSystem_PalmBase::updateScreen() {
WinPalette(winPaletteSet, _paletteDirtyStart, _paletteDirtyEnd - _paletteDirtyStart, _currentPalette + _paletteDirtyStart);
_paletteDirtyEnd = 0;
//_redawOSD = true;
-
-#ifdef PALMOS_68Ks
- UInt8 oldCol;
- oldCol = gVars->indicator.on;
- gVars->indicator.on = RGBToColor(0,255,0);
-
- if (oldCol != gVars->indicator.on)
- _redrawOSD = true;
-
-/* {
- // redraw if needed
- if (_lastKeyModifier)
- draw1BitGfx((kDrawKeyState + _lastKeyModifier - 1), 2, getHeight() + 2, true);
-
- if(_useNumPad)
- draw1BitGfx(kDrawNumPad, (getWidth() >> 1) - 32, getHeight() + 2, true);
-
- if (_showBatLow)
- draw1BitGfx(kDrawBatLow, (getWidth() >> 1), -16, true);
- }*/
-#endif
}
if (_redawOSD) {
_redawOSD = false;
@@ -184,11 +159,7 @@ void OSystem_PalmBase::clearScreen() {
void OSystem_PalmBase::draw_osd(UInt16 id, Int32 x, Int32 y, Boolean show, UInt8 color) {
//return;
-#ifdef PALMOS_68K
- MemHandle hTemp = DmGetResource(bitmapRsc, id);
-#else
MemHandle hTemp = DmGetResource('abmp', id + 100);
-#endif
if (hTemp) {
/*static const UInt32 pal[3] = {
@@ -201,11 +172,8 @@ void OSystem_PalmBase::draw_osd(UInt16 id, Int32 x, Int32 y, Boolean show, UInt8
bmTemp = (BitmapType *)MemHandleLock(hTemp);
Coord w, h;
-#ifdef PALMOS_68K
- BmpGlueGetDimensions(bmTemp, &w, &h, 0);
-#else
BmpGetDimensions(bmTemp, &w, &h, 0);
-#endif
+
PointType dst = { _screenOffset.x + x, _screenOffset.y + y };
RectangleType r = { dst.x, dst.y, w, h };
@@ -233,49 +201,4 @@ void OSystem_PalmBase::draw_osd(UInt16 id, Int32 x, Int32 y, Boolean show, UInt8
MemPtrUnlock(bmTemp);
DmReleaseResource(hTemp);
}
-
-/* MemHandle hTemp = DmGetResource(bitmapRsc, id);
-
- if (hTemp) {
- BitmapType *bmTemp;
- UInt32 *bmData;
- UInt8 ih, iw, ib;
- Coord w, h;
- Int16 blocks, next;
-
- UInt8 *scr = _screenP + x + _screenPitch * y;
- bmTemp = (BitmapType *)MemHandleLock(hTemp);
- bmData = (UInt32 *)BmpGetBits(bmTemp);
-
-#ifdef PALMOS_68K
- BmpGlueGetDimensions(bmTemp, &w, &h, 0);
-#else
- BmpGetDimensions(bmTemp, &w, &h, 0);
-#endif
-
- blocks = w >> 5;
- next = w - (blocks << 5);
-
- if (next)
- blocks++;
-
- for (ih = 0; ih < h; ih++) { // line
- for (ib = 0; ib < blocks; ib++) { // 32pix block
- next = w - (ib << 5);
- next = MIN(next, (Coord)32);
-
- for (iw = 0; iw < next; iw++) { // row
- *scr++ = ((*bmData & (1 << (31 - iw))) && show) ?
- gVars->indicator.on :
- gVars->indicator.off;
- }
-
- bmData++;
- }
- scr += _screenPitch - w;
- }
-
- MemHandleUnlock(hTemp);
- DmReleaseResource(hTemp);
- }*/
}