Preview tweaks

This commit is contained in:
Steven Robertson 2012-01-03 12:03:06 -05:00
parent dde1193237
commit 5c3575bf54

View File

@ -78,10 +78,11 @@ def main(args, prof):
if args.gfx: if args.gfx:
import pyglet import pyglet
window = pyglet.window.Window(w, h) window = pyglet.window.Window(w, h, vsync=False)
image = pyglet.image.CheckerImagePattern().create_image(w, h) image = pyglet.image.CheckerImagePattern().create_image(w, h)
label = pyglet.text.Label('Rendering first frame', x=5, y=5, label = pyglet.text.Label('Rendering first frame', x=5, y=h-5,
font_size=16, bold=True) width=w, anchor_y='top', font_size=16,
bold=True, multiline=True)
@window.event @window.event
def on_draw(): def on_draw():