Browse Source

go back to short zoints for now

David Rose 17 years ago
parent
commit
f6c1bcd24e

+ 1 - 0
panda/src/tinydisplay/tinySDLGraphicsWindow.cxx

@@ -48,6 +48,7 @@ TinySDLGraphicsWindow(GraphicsPipe *pipe,
   _screen = NULL;
   _screen = NULL;
   _frame_buffer = NULL;
   _frame_buffer = NULL;
   _pitch = 0;
   _pitch = 0;
+  update_pixel_factor();
 
 
   GraphicsWindowInputDevice device =
   GraphicsWindowInputDevice device =
     GraphicsWindowInputDevice::pointer_and_keyboard(this, "keyboard/mouse");
     GraphicsWindowInputDevice::pointer_and_keyboard(this, "keyboard/mouse");

+ 1 - 0
panda/src/tinydisplay/tinyXGraphicsWindow.cxx

@@ -84,6 +84,7 @@ TinyXGraphicsWindow(GraphicsPipe *pipe,
 
 
   _frame_buffer = NULL;
   _frame_buffer = NULL;
   _ximage = NULL;
   _ximage = NULL;
+  update_pixel_factor();
 
 
   GraphicsWindowInputDevice device =
   GraphicsWindowInputDevice device =
     GraphicsWindowInputDevice::pointer_and_keyboard(this, "keyboard/mouse");
     GraphicsWindowInputDevice::pointer_and_keyboard(this, "keyboard/mouse");

+ 1 - 1
panda/src/tinydisplay/zbuffer.h

@@ -7,7 +7,7 @@
 
 
 #include "zfeatures.h"
 #include "zfeatures.h"
 
 
-typedef unsigned int ZPOINT;
+typedef unsigned short ZPOINT;
 #define ZB_Z_BITS 16
 #define ZB_Z_BITS 16
 #define ZB_POINT_Z_FRAC_BITS 14
 #define ZB_POINT_Z_FRAC_BITS 14