From f6c1bcd24e0ef594d261ffefa03a48b849e22915 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 9 May 2008 00:08:32 +0000 Subject: [PATCH] go back to short zoints for now --- panda/src/tinydisplay/tinySDLGraphicsWindow.cxx | 1 + panda/src/tinydisplay/tinyXGraphicsWindow.cxx | 1 + panda/src/tinydisplay/zbuffer.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/panda/src/tinydisplay/tinySDLGraphicsWindow.cxx b/panda/src/tinydisplay/tinySDLGraphicsWindow.cxx index ac2d00b967..d206ffd8a5 100644 --- a/panda/src/tinydisplay/tinySDLGraphicsWindow.cxx +++ b/panda/src/tinydisplay/tinySDLGraphicsWindow.cxx @@ -48,6 +48,7 @@ TinySDLGraphicsWindow(GraphicsPipe *pipe, _screen = NULL; _frame_buffer = NULL; _pitch = 0; + update_pixel_factor(); GraphicsWindowInputDevice device = GraphicsWindowInputDevice::pointer_and_keyboard(this, "keyboard/mouse"); diff --git a/panda/src/tinydisplay/tinyXGraphicsWindow.cxx b/panda/src/tinydisplay/tinyXGraphicsWindow.cxx index bc0cc209bd..65cbbf039a 100644 --- a/panda/src/tinydisplay/tinyXGraphicsWindow.cxx +++ b/panda/src/tinydisplay/tinyXGraphicsWindow.cxx @@ -84,6 +84,7 @@ TinyXGraphicsWindow(GraphicsPipe *pipe, _frame_buffer = NULL; _ximage = NULL; + update_pixel_factor(); GraphicsWindowInputDevice device = GraphicsWindowInputDevice::pointer_and_keyboard(this, "keyboard/mouse"); diff --git a/panda/src/tinydisplay/zbuffer.h b/panda/src/tinydisplay/zbuffer.h index 6fe71ff7d1..3a78282b9a 100644 --- a/panda/src/tinydisplay/zbuffer.h +++ b/panda/src/tinydisplay/zbuffer.h @@ -7,7 +7,7 @@ #include "zfeatures.h" -typedef unsigned int ZPOINT; +typedef unsigned short ZPOINT; #define ZB_Z_BITS 16 #define ZB_POINT_Z_FRAC_BITS 14