diff options
author | Chris Apers | 2003-08-18 10:48:39 +0000 |
---|---|---|
committer | Chris Apers | 2003-08-18 10:48:39 +0000 |
commit | 3c5f641f482ea799f59dcd3759d06bde1f57cff8 (patch) | |
tree | 5b484682ce9000587b30af04ee045327f6cce43e | |
parent | d4d12864408ba769e749089d259ddecb9ed5b768 (diff) | |
download | scummvm-rg350-3c5f641f482ea799f59dcd3759d06bde1f57cff8.tar.gz scummvm-rg350-3c5f641f482ea799f59dcd3759d06bde1f57cff8.tar.bz2 scummvm-rg350-3c5f641f482ea799f59dcd3759d06bde1f57cff8.zip |
Removed : read/write led indicator
svn-id: r9758
-rw-r--r-- | backends/PalmOS/Src/missing/_stdio.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/backends/PalmOS/Src/missing/_stdio.cpp b/backends/PalmOS/Src/missing/_stdio.cpp index ff975d960e..69c261a6b3 100644 --- a/backends/PalmOS/Src/missing/_stdio.cpp +++ b/backends/PalmOS/Src/missing/_stdio.cpp @@ -28,27 +28,6 @@ // WARNING : printf functions must only be used if you compile your code with // 4byte int option, use standard functions if 2byte int mode // TODO : enable use of 2byte or 4byte (ifdef PRINTF_4BYTE ...) - - -static void DrawStatus(Boolean show) { - UInt8 x,y; - UInt8 *screen = (UInt8 *)(BmpGetBits(WinGetBitmap(WinGetDisplayWindow()))); - UInt8 color = (show? gVars->indicator.on : gVars->indicator.off); - - if (gVars->screenLocked) - if (screen == gVars->flipping.pageAddr1) - screen = gVars->flipping.pageAddr2; - else - screen = gVars->flipping.pageAddr1; - - screen += 320 + 305; - for(y=0;y<3;y++) - { - for(x=0;x<14;x++) - screen[x] = color; - screen += 319; - } -} /////////////////////////////////////////////////////////////////////////////// UInt16 fclose(FileRef *stream) { Err error = VFSFileClose(*stream); @@ -91,9 +70,7 @@ UInt16 feof(FileRef *stream) { /////////////////////////////////////////////////////////////////////////////// Char *fgets(Char *s, UInt32 n, FileRef *stream) { UInt32 numBytesRead; - DrawStatus(true); Err error = VFSFileRead(*stream, n, s, &numBytesRead); - DrawStatus(false); if (error == errNone || error == vfsErrFileEOF) { UInt32 reset = 0; Char *endLine = StrChr(s, '\n'); @@ -219,9 +196,7 @@ FileRef *fopen(const Char *filename, const Char *type) { /////////////////////////////////////////////////////////////////////////////// UInt32 fread(void *ptr, UInt32 size, UInt32 nitems, FileRef *stream) { UInt32 numBytesRead; - DrawStatus(true); Err error = VFSFileRead(*stream, size*nitems, ptr, &numBytesRead); - DrawStatus(false); if (error == errNone || error == vfsErrFileEOF) return (UInt32)(numBytesRead/size); @@ -253,9 +228,7 @@ UInt32 fread(void *ptr, UInt32 size, UInt32 nitems, FileRef *stream) { /////////////////////////////////////////////////////////////////////////////// UInt32 fwrite(const void *ptr, UInt32 size, UInt32 nitems, FileRef *stream) { UInt32 numBytesWritten; - DrawStatus(true); Err error = VFSFileWrite(*stream, size*nitems, ptr, &numBytesWritten); - DrawStatus(false); if (error == errNone || error == vfsErrFileEOF) return (UInt32)(numBytesWritten/size); |