From: <Mee...@us...> - 2009-10-28 07:29:39
|
Revision: 3260 http://sc2.svn.sourceforge.net/sc2/?rev=3260&view=rev Author: Meep-Eep Date: 2009-10-28 07:29:29 +0000 (Wed, 28 Oct 2009) Log Message: ----------- Remove empty struct. Modified Paths: -------------- trunk/sc2/src/uqm/flash.h Modified: trunk/sc2/src/uqm/flash.h =================================================================== --- trunk/sc2/src/uqm/flash.h 2009-10-28 05:00:07 UTC (rev 3259) +++ trunk/sc2/src/uqm/flash.h 2009-10-28 07:29:29 UTC (rev 3260) @@ -117,9 +117,9 @@ // The type of flash animation. union { + /*struct { + } highlight;*/ struct { - } highlight; - struct { FRAME first; // The first image from the transition (cross-fade). // (FRAME) 0 means that the original is to be used. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Mee...@us...> - 2011-12-29 21:18:14
|
Revision: 3719 http://sc2.svn.sourceforge.net/sc2/?rev=3719&view=rev Author: Meep-Eep Date: 2011-12-29 21:18:08 +0000 (Thu, 29 Dec 2011) Log Message: ----------- Fix comments. Modified Paths: -------------- trunk/sc2/src/uqm/flash.h Modified: trunk/sc2/src/uqm/flash.h =================================================================== --- trunk/sc2/src/uqm/flash.h 2011-12-29 15:00:32 UTC (rev 3718) +++ trunk/sc2/src/uqm/flash.h 2011-12-29 21:18:08 UTC (rev 3719) @@ -31,18 +31,17 @@ * * // We create the flash context; it is used to manipulate the flash * // rectangle while it exists. - * FlashContext *fc = Flash_createHighlight (context, (FRAME) 0, rect); + * FlashContext *fc = Flash_createHighlight (gfxContext, rect); * * // Specify how bright the flash is at the beginning and ending of the * // sequence. - * Flash_setMergeFactors(context, 2, 3, 2); + * Flash_setMergeFactors(fc, 2, 3, 2); * * // We change the flashing speed from the defaults. * Flash_setSpeed (ONE_SECOND, ONE_SECOND, ONE_SECOND, ONE_SECOND); * * // During cross-fades, update 8 times per second. - * Flash_setFrameTime (gmstate.player[playerI].flashContext, - * ONE_SECOND / 8); + * Flash_setFrameTime (fc, ONE_SECOND / 8); * * // We start the flashing. The default is to start from the "off" state. * Flash_start (fc); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Mee...@us...> - 2011-12-29 22:30:48
|
Revision: 3721 http://sc2.svn.sourceforge.net/sc2/?rev=3721&view=rev Author: Meep-Eep Date: 2011-12-29 22:30:42 +0000 (Thu, 29 Dec 2011) Log Message: ----------- More comment fixes. Modified Paths: -------------- trunk/sc2/src/uqm/flash.h Modified: trunk/sc2/src/uqm/flash.h =================================================================== --- trunk/sc2/src/uqm/flash.h 2011-12-29 21:29:16 UTC (rev 3720) +++ trunk/sc2/src/uqm/flash.h 2011-12-29 22:30:42 UTC (rev 3721) @@ -38,7 +38,7 @@ * Flash_setMergeFactors(fc, 2, 3, 2); * * // We change the flashing speed from the defaults. - * Flash_setSpeed (ONE_SECOND, ONE_SECOND, ONE_SECOND, ONE_SECOND); + * Flash_setSpeed (fc, ONE_SECOND, ONE_SECOND, ONE_SECOND, ONE_SECOND); * * // During cross-fades, update 8 times per second. * Flash_setFrameTime (fc, ONE_SECOND / 8); @@ -62,7 +62,7 @@ * ... * // Modifying the graphics of the area that is flashing: * void Flash_preUpdate (fc); - * ... // do Drawing + * ... // do drawing * void Flash_postUpdate (fc); * ... * // We're done. Terminating the flash restores the flash area to its @@ -77,13 +77,15 @@ * * Limitations: * - * 2) Functions that draw to the gfxContext or read the original gfxContext - * contents, which is most of them, must be called with gfxContext having - * the same clip-rect as it did when other drawing functions were called. - * Otherwise, original contents restoration may draw to the wrong area, or - * the wrong area may be read. - * There may be cases where one would *want* that to happen, and such - * cases are not covered by this limitation. + * * Functions that draw to the gfxContext or read the original gfxContext + * contents, which is most of them, must be called with gfxContext having + * the same clip-rect as it did when other drawing functions were called. + * Otherwise, original contents restoration may draw to the wrong area, or + * the wrong area may be read. + * There may be cases where one would *want* that to happen, and such + * cases are not covered by this limitation. + * * Multiple flashes may be used simultaneously, but don't let them + * overlap; artifacts would occur. */ #include "libs/gfxlib.h" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Mee...@us...> - 2012-01-14 20:10:18
|
Revision: 3746 http://sc2.svn.sourceforge.net/sc2/?rev=3746&view=rev Author: Meep-Eep Date: 2012-01-14 20:10:11 +0000 (Sat, 14 Jan 2012) Log Message: ----------- No bitfields here. Modified Paths: -------------- trunk/sc2/src/uqm/flash.h Modified: trunk/sc2/src/uqm/flash.h =================================================================== --- trunk/sc2/src/uqm/flash.h 2012-01-13 18:09:31 UTC (rev 3745) +++ trunk/sc2/src/uqm/flash.h 2012-01-14 20:10:11 UTC (rev 3746) @@ -164,8 +164,8 @@ TimeCount lastFrameTime; // Time of the last frame draw. - BOOLEAN started : 1; - BOOLEAN paused : 1; + BOOLEAN started; + BOOLEAN paused; FRAME *cache; COUNT cacheSize; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |