Browse Source

general: Add missing includes and remove deprecated type

Credit for missing includes to @treamology in Git commit
16cfac482923bc734447d234fd8eaaa99483847d

CGTableCount removed; modern macOS seems to call this
a uint32_t instead. I can find no reference to CGTableCount
in any documentation, and the (very old) source code I dig
up just typedefs it anyway.
Sam Edwards 7 years ago
parent
commit
2d80d6d063

+ 1 - 0
panda/src/cocoadisplay/cocoaPandaApp.mm

@@ -12,6 +12,7 @@
  */
  */
 
 
 #import "cocoaPandaApp.h"
 #import "cocoaPandaApp.h"
+#include "config_cocoadisplay.h"
 
 
 @implementation CocoaPandaApp
 @implementation CocoaPandaApp
 - (void) sendEvent: (NSEvent *) event {
 - (void) sendEvent: (NSEvent *) event {

+ 2 - 0
panda/src/display/subprocessWindow.cxx

@@ -18,6 +18,8 @@
 #include "graphicsEngine.h"
 #include "graphicsEngine.h"
 #include "config_display.h"
 #include "config_display.h"
 #include "nativeWindowHandle.h"
 #include "nativeWindowHandle.h"
+#include "mouseButton.h"
+#include "throw_event.h"
 
 
 using std::string;
 using std::string;
 
 

+ 1 - 1
panda/src/osxdisplay/osxGraphicsStateGuardian.h

@@ -64,7 +64,7 @@ private:
   CGGammaValue _gOriginalRedTable[ 256 ];
   CGGammaValue _gOriginalRedTable[ 256 ];
   CGGammaValue _gOriginalGreenTable[ 256 ];
   CGGammaValue _gOriginalGreenTable[ 256 ];
   CGGammaValue _gOriginalBlueTable[ 256 ];
   CGGammaValue _gOriginalBlueTable[ 256 ];
-  CGTableCount _sampleCount;
+  uint32_t _sampleCount;
   CGDisplayErr _cgErr;
   CGDisplayErr _cgErr;
 
 
 public:
 public: