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