mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[mac] Fix C warnings
This commit is contained in:
@@ -560,7 +560,7 @@ void ToggleFullscreen(struct Application *app) {
|
||||
}
|
||||
|
||||
bool isFullScreen(struct Application *app) {
|
||||
int mask = (int)msg_reg(app->mainWindow, s("styleMask"));
|
||||
long mask = (long)msg_reg(app->mainWindow, s("styleMask"));
|
||||
bool result = (mask & NSWindowStyleMaskFullscreen) == NSWindowStyleMaskFullscreen;
|
||||
return result;
|
||||
}
|
||||
@@ -789,7 +789,7 @@ void MessageDialog(struct Application *app, char *callbackID, char *type, char *
|
||||
|
||||
// Run modal
|
||||
char *buttonPressed;
|
||||
int response = (int)msg_reg(alert, s("runModal"));
|
||||
long response = (long)msg_reg(alert, s("runModal"));
|
||||
if( response == NSAlertFirstButtonReturn ) {
|
||||
buttonPressed = button1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user