sokol: move _sapp_macos_resize_window
parent
45534b512b
commit
d8ea9e4969
|
@ -3032,6 +3032,14 @@ _SOKOL_PRIVATE void _sapp_macos_update_window_title(void) {
|
|||
[_sapp.macos.window setTitle: [NSString stringWithUTF8String:_sapp.window_title]];
|
||||
}
|
||||
|
||||
_SOKOL_PRIVATE void _sapp_macos_resize_window(int width, height) {
|
||||
[_sapp.macos.window setFrame:NSMakeRect(width, height, width, height) display:YES animate:YES];
|
||||
//NSRect frame = [window frame];
|
||||
//frame.size = ;
|
||||
//[window setFrame: frame display: YES animate: NO];
|
||||
}
|
||||
|
||||
|
||||
_SOKOL_PRIVATE void _sapp_macos_update_mouse(NSEvent* event) {
|
||||
if (!_sapp.mouse.locked) {
|
||||
const NSPoint mouse_pos = event.locationInWindow;
|
||||
|
@ -10983,14 +10991,6 @@ SOKOL_API_IMPL void sapp_set_window_title(const char* title) {
|
|||
#endif
|
||||
}
|
||||
|
||||
_SOKOL_PRIVATE void _sapp_macos_resize_window(int width, height) {
|
||||
[_sapp.macos.window setFrame:NSMakeRect(width, height, width, height) display:YES animate:YES];
|
||||
//NSRect frame = [window frame];
|
||||
//frame.size = theSizeYouWant;
|
||||
//[window setFrame: frame display: YES animate: whetherYouWantAnimation];
|
||||
|
||||
}
|
||||
|
||||
SOKOL_API_IMPL void sapp_resize_window(int width, height) {
|
||||
/*
|
||||
#if defined(_SAPP_MACOS)
|
||||
|
|
Loading…
Reference in New Issue