--- /Users/gradha/Downloads/old_flicker.py	2008-12-11 17:02:36.000000000 +0100
+++ flicker.py	2008-12-11 17:05:42.000000000 +0100
@@ -25,7 +25,7 @@ window.background = None
 
 
 @window.event
-def on_draw():
+def on_draw(draw_cross = False):
 	glColor3f(1, 1, 1)
 	if not window.background:
 		checks = pyglet.image.create(32, 32, pyglet.image.CheckerImagePattern())
@@ -54,15 +54,14 @@ def on_draw():
 
 	texture.blit(x, y, width = w, height = h)
 
-
-def draw_cross():
-	glBegin(GL_LINES)
-	glColor3f(0, 0, 0)
-	glVertex2f(0, 0)
-	glVertex2f(window.width, window.height)
-	glVertex2f(0, window.height)
-	glVertex2f(window.width, 0)
-	glEnd()
+	if draw_cross:
+		glBegin(GL_LINES)
+		glColor3f(0, 0, 0)
+		glVertex2f(0, 0)
+		glVertex2f(window.width, window.height)
+		glVertex2f(0, window.height)
+		glVertex2f(window.width, 0)
+		glEnd()
 
 
 @window.event
@@ -93,12 +92,12 @@ def on_text(text):
 		refresh = True
 
 	if reload:
-		draw_cross()
-		# TODO: Don't we have too many flips here?
+		on_draw(True)
 		window.flip()
 		load(pointer)
 
 	if refresh:
+		on_draw()
 		window.flip()
 
 
