Only updates XOR if stamp was changed. (Complicated/large stamps would take

a long time, and get Tux Paint stuck when scrolling up/down!!!)
This commit is contained in:
William Kendrick 2004-12-12 08:39:32 +00:00
parent ca4af821bf
commit 89040067c2

View file

@ -21,12 +21,12 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
June 14, 2002 - December 11, 2004 June 14, 2002 - December 12, 2004
*/ */
#define VER_VERSION "0.9.15" #define VER_VERSION "0.9.15"
#define VER_DATE "2004-12-11" #define VER_DATE "2004-12-12"
//#define VIDEO_BPP 15 // saves memory //#define VIDEO_BPP 15 // saves memory
@ -1996,10 +1996,14 @@ static void mainloop(void)
#endif #endif
cur_stamp = cur_thing; if (cur_thing != cur_stamp)
{
cur_stamp = cur_thing;
update_stamp_xor();
}
stamp_scroll = thing_scroll; stamp_scroll = thing_scroll;
update_stamp_xor();
if (do_draw) if (do_draw)
draw_stamps(); draw_stamps();