[Redbutton-devel] SF.net SVN: redbutton: [64] redbutton-browser/trunk
Brought to you by:
skilvington
|
From: <ski...@us...> - 2006-05-16 13:01:45
|
Revision: 64 Author: skilvington Date: 2006-05-16 06:01:32 -0700 (Tue, 16 May 2006) ViewCVS: http://svn.sourceforge.net/redbutton/?rev=64&view=rev Log Message: ----------- don't redraw overlay if screen is already unlocked Modified Paths: -------------- redbutton-browser/trunk/ApplicationClass.c redbutton-browser/trunk/MHEGEngine.c Modified: redbutton-browser/trunk/ApplicationClass.c =================================================================== --- redbutton-browser/trunk/ApplicationClass.c 2006-05-15 19:23:59 UTC (rev 63) +++ redbutton-browser/trunk/ApplicationClass.c 2006-05-16 13:01:32 UTC (rev 64) @@ -456,17 +456,19 @@ verbose("ApplicationClass: %s; UnlockScreen", ExternalReference_name(&t->rootClass.inst.ref)); + /* if it is not already unlocked */ if(t->inst.LockCount > 0) + { t->inst.LockCount --; - - /* update the screen if it is now unlocked */ - if(t->inst.LockCount == 0) - { - pos.x_position = 0; - pos.y_position = 0; - box.x_length = MHEG_XRES; - box.y_length = MHEG_YRES; - MHEGEngine_redrawArea(&pos, &box); + /* update the screen if it is now unlocked */ + if(t->inst.LockCount == 0) + { + pos.x_position = 0; + pos.y_position = 0; + box.x_length = MHEG_XRES; + box.y_length = MHEG_YRES; + MHEGEngine_redrawArea(&pos, &box); + } } return; Modified: redbutton-browser/trunk/MHEGEngine.c =================================================================== --- redbutton-browser/trunk/MHEGEngine.c 2006-05-15 19:23:59 UTC (rev 63) +++ redbutton-browser/trunk/MHEGEngine.c 2006-05-16 13:01:32 UTC (rev 64) @@ -645,10 +645,14 @@ app = MHEGEngine_getActiveApplication(); +printf("redrawArea: LockCount=%d\n", app->inst.LockCount); + /* only redraw if the display is not locked */ if(app->inst.LockCount > 0) return; +printf("redrawArea: %d: %d,%d %d,%d: start\n", time(NULL), pos->x_position, pos->y_position, box->x_length, box->y_length); + /**************************************************************************************/ /* could do: */ /* MHEGDisplay_setClipRectangle(pos, box); */ @@ -673,9 +677,13 @@ stack = stack->next; } +printf("redrawArea: refresh\n"); + /* refresh the screen */ MHEGDisplay_refresh(&engine.display, pos, box); +printf("redrawArea: end\n"); + return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |