macOS: Fix implicit integer downcast warnings
parent
d9d8f51eec
commit
ba4ef461ea
|
@ -48,7 +48,7 @@ typedef enum
|
||||||
BOOL inFullscreenTransition;
|
BOOL inFullscreenTransition;
|
||||||
PendingWindowOperation pendingWindowOperation;
|
PendingWindowOperation pendingWindowOperation;
|
||||||
BOOL isMoving;
|
BOOL isMoving;
|
||||||
int focusClickPending;
|
NSInteger focusClickPending;
|
||||||
int pendingWindowWarpX, pendingWindowWarpY;
|
int pendingWindowWarpX, pendingWindowWarpY;
|
||||||
BOOL isDragAreaRunning;
|
BOOL isDragAreaRunning;
|
||||||
}
|
}
|
||||||
|
@ -64,8 +64,8 @@ typedef enum
|
||||||
|
|
||||||
-(BOOL) isMoving;
|
-(BOOL) isMoving;
|
||||||
-(BOOL) isMovingOrFocusClickPending;
|
-(BOOL) isMovingOrFocusClickPending;
|
||||||
-(void) setFocusClickPending:(int) button;
|
-(void) setFocusClickPending:(NSInteger) button;
|
||||||
-(void) clearFocusClickPending:(int) button;
|
-(void) clearFocusClickPending:(NSInteger) button;
|
||||||
-(void) setPendingMoveX:(int)x Y:(int)y;
|
-(void) setPendingMoveX:(int)x Y:(int)y;
|
||||||
-(void) windowDidFinishMoving;
|
-(void) windowDidFinishMoving;
|
||||||
-(void) onMovingOrFocusClickPendingStateCleared;
|
-(void) onMovingOrFocusClickPendingStateCleared;
|
||||||
|
|
|
@ -515,12 +515,12 @@ SetWindowStyle(SDL_Window * window, NSUInteger style)
|
||||||
return isMoving || (focusClickPending != 0);
|
return isMoving || (focusClickPending != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void) setFocusClickPending:(int) button
|
-(void) setFocusClickPending:(NSInteger) button
|
||||||
{
|
{
|
||||||
focusClickPending |= (1 << button);
|
focusClickPending |= (1 << button);
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void) clearFocusClickPending:(int) button
|
-(void) clearFocusClickPending:(NSInteger) button
|
||||||
{
|
{
|
||||||
if ((focusClickPending & (1 << button)) != 0) {
|
if ((focusClickPending & (1 << button)) != 0) {
|
||||||
focusClickPending &= ~(1 << button);
|
focusClickPending &= ~(1 << button);
|
||||||
|
|
Loading…
Reference in New Issue