[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src/missing _stdio.cpp,1.5,1.6
Chris Apers
chrilith at users.sourceforge.net
Mon Aug 18 04:17:01 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Rsc/Resource.Frk Starter.rsrc,1.10,1.11
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src globals.h,1.4,1.5 palm.cpp,1.21,1.22 palm.h,1.15,1.16 palmstart.cpp,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing
In directory sc8-pr-cvs1:/tmp/cvs-serv1290
Modified Files:
_stdio.cpp
Log Message:
Removed : read/write led indicator
Index: _stdio.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/_stdio.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- _stdio.cpp 15 Jul 2003 10:32:00 -0000 1.5
+++ _stdio.cpp 18 Aug 2003 10:48:39 -0000 1.6
@@ -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 @@
///////////////////////////////////////////////////////////////////////////////
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 @@
///////////////////////////////////////////////////////////////////////////////
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 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);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Rsc/Resource.Frk Starter.rsrc,1.10,1.11
- Next message: [Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src globals.h,1.4,1.5 palm.cpp,1.21,1.22 palm.h,1.15,1.16 palmstart.cpp,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list