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.
This commit is contained in:
Sam Edwards 2018-10-14 15:50:06 -06:00
parent 602ea6ebf4
commit 2d80d6d063
3 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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;

View File

@ -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: