ソースを参照

fix some more build issues

David Rose 15 年 前
コミット
f520917426

+ 13 - 6
panda/src/display/Sources.pp

@@ -13,6 +13,7 @@
   #define SOURCES  \
     standardMunger.I standardMunger.h \
     config_display.h \
+    customGraphicsWindowProc.h \
     drawableRegion.I drawableRegion.h \
     displayRegion.I displayRegion.h  \
     displayRegionCullCallbackData.I displayRegionCullCallbackData.h \
@@ -21,6 +22,7 @@
     graphicsEngine.I graphicsEngine.h \
     graphicsOutput.I graphicsOutput.h \
     graphicsBuffer.I graphicsBuffer.h \
+    graphicsDevice.h graphicsDevice.I \
     graphicsPipe.I graphicsPipe.h  \
     graphicsPipeSelection.I graphicsPipeSelection.h \
     graphicsStateGuardian.I \
@@ -29,7 +31,7 @@
     graphicsWindow.I graphicsWindow.h \
     graphicsWindowInputDevice.I  \
     graphicsWindowInputDevice.h \
-    graphicsDevice.h graphicsDevice.I \
+    graphicsWindowProc.h \
     lru.h \
     nativeWindowHandle.I nativeWindowHandle.h \
     parasiteBuffer.I parasiteBuffer.h \
@@ -41,15 +43,20 @@
     displaySearchParameters.h \
     displayInformation.h \
     subprocessWindow.h subprocessWindow.I \
-    $[if $[OSX_PLATFORM], subprocessWindowBuffer.h subprocessWindowBuffer.I]
+    $[if $[OSX_PLATFORM], subprocessWindowBuffer.h subprocessWindowBuffer.I] \
+    touchInfo.h 
+
     
  #define INCLUDED_SOURCES  \
     standardMunger.cxx \
     config_display.cxx \
+    customGraphicsWindowProc.cxx \
     drawableRegion.cxx \
     displayRegion.cxx \
     displayRegionCullCallbackData.cxx \
     displayRegionDrawCallbackData.cxx \
+    displaySearchParameters.cxx \
+    displayInformation.cxx \
     frameBufferProperties.cxx \
     graphicsEngine.cxx \
     graphicsOutput.cxx \
@@ -59,17 +66,17 @@
     graphicsStateGuardian.cxx  \
     graphicsThreadingModel.cxx \
     graphicsWindow.cxx graphicsWindowInputDevice.cxx  \
+    graphicsWindowProc.cxx \
     graphicsDevice.cxx \
+    lru.cxx \
     nativeWindowHandle.cxx \
     parasiteBuffer.cxx \
     windowHandle.cxx \
     windowProperties.cxx \
-    lru.cxx \
     stencilRenderStates.cxx \
     stereoDisplayRegion.cxx \
-    displaySearchParameters.cxx \
-    displayInformation.cxx \
-    subprocessWindow.cxx
+    subprocessWindow.cxx \
+    touchInfo.cxx
 
   #define INSTALL_HEADERS \
     standardMunger.I standardMunger.h \

+ 2 - 1
panda/src/display/customGraphicsWindowProc.h

@@ -15,6 +15,7 @@
 #ifndef CUSTOMGRAPHICSWINDOWPROC_H
 #define CUSTOMGRAPHICSWINDOWPROC_H
 
+#include "pandabase.h"
 #include "graphicsWindowProc.h"
 
 class CustomGraphicsWindowProc: public GraphicsWindowProc{
@@ -34,4 +35,4 @@ private:
   PyObject* _name;
 };
 
-#endif //CUSTOMGRAPHICSWINDOWPROC_H
+#endif //CUSTOMGRAPHICSWINDOWPROC_H

+ 1 - 1
panda/src/display/graphicsEngine.cxx

@@ -1564,7 +1564,7 @@ process_events(const GraphicsEngine::Windows &wlist, Thread *current_thread) {
   // We're not using a vector iterator here, since it's possible that
   // the window list changes in an event, which would invalidate the
   // iterator and cause a crash.
-  for (int i = 0; i < wlist.size(); ++i) {
+  for (size_t i = 0; i < wlist.size(); ++i) {
     wlist[i]->process_events();
   }
 }

+ 20 - 20
panda/src/display/touchInfo.cxx

@@ -15,40 +15,40 @@
 #include "touchInfo.h"
 
 TouchInfo::TouchInfo(){
-	_x = 0;
-	_y = 0;
-	_id = 0;
-	_flags = 0;
+  _x = 0;
+  _y = 0;
+  _id = 0;
+  _flags = 0;
 }
 
-LONG TouchInfo::get_x(){
-	return _x;
+int TouchInfo::get_x(){
+  return _x;
 }
 
-LONG TouchInfo::get_y(){
-	return _y;
+int TouchInfo::get_y(){
+  return _y;
 }
 
-DWORD TouchInfo::get_id(){
-	return _id;
+int TouchInfo::get_id(){
+  return _id;
 }
 
-DWORD TouchInfo::get_flags(){
-	return _flags;
+int TouchInfo::get_flags(){
+  return _flags;
 }
 
-void TouchInfo::set_x(LONG x){
-	_x = x;
+void TouchInfo::set_x(int x){
+  _x = x;
 }
 
-void TouchInfo::set_y(LONG y){
-	_y = y;
+void TouchInfo::set_y(int y){
+  _y = y;
 }
 
-void TouchInfo::set_id(DWORD id){
-	_id = id;
+void TouchInfo::set_id(int id){
+  _id = id;
 }
 
-void TouchInfo::set_flags(DWORD flags){
-	_flags = flags;
+void TouchInfo::set_flags(int flags){
+  _flags = flags;
 }

+ 16 - 14
panda/src/display/touchInfo.h

@@ -15,6 +15,8 @@
 #ifndef TOUCHINFO_H
 #define TOUCHINFO_H
 
+#include "pandabase.h"
+
 ////////////////////////////////////////////////////////////////////
 //       Class : TouchInfo
 // Description : Stores information for a single touch event.
@@ -25,32 +27,32 @@ PUBLISHED:
   enum TouchInfoFlags
   {
     TIF_move = 0x0001,
-	TIF_down = 0x0002,
-	TIF_UP = 0x0004,
+    TIF_down = 0x0002,
+    TIF_UP = 0x0004,
   };
 
 public:
 
   TouchInfo();
 
-  void set_x(LONG x);
-  void set_y(LONG y);
-  void set_id(DWORD id);
-  void set_flags(DWORD flags);
+  void set_x(int x);
+  void set_y(int y);
+  void set_id(int id);
+  void set_flags(int flags);
 
 PUBLISHED:
 
-  LONG get_x();
-  LONG get_y();
-  DWORD get_id();
-  DWORD get_flags();
+  int get_x();
+  int get_y();
+  int get_id();
+  int get_flags();
 
 private:
   
-	LONG _x;
-	LONG _y;
-	DWORD _id;
-	DWORD _flags;
+  int _x;
+  int _y;
+  int _id;
+  int _flags;
 };
 
 #endif