aboutsummaryrefslogtreecommitdiff
path: root/sokol_app.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2023-05-08 19:26:26 +0200
committerAndre Weissflog <floooh@gmail.com>2023-05-08 19:26:26 +0200
commit2ef0ebd17f2d3d0d0b13ce911c4d7126ede5a82a (patch)
tree4579094be9342d707ae3068c4106094ea54e7e3e /sokol_app.h
parent957191cec34da6b101745bcdd05662fc85c20f9f (diff)
sokol_app.h gl: remove the NSOpenGLView.reshape handler
This was a hack/workaround for a size reporting problem in NSOpenGLView when the requested window size was bigger than the display size. It looks like this workaround is no longer needed (and it also makes the last commit irrelevant)
Diffstat (limited to 'sokol_app.h')
-rw-r--r--sokol_app.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 72ab0b58..4b1ec773 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -3973,20 +3973,6 @@ _SOKOL_PRIVATE void _sapp_macos_frame(void) {
@implementation _sapp_macos_view
#if defined(SOKOL_GLCORE33)
-/* NOTE: this is a hack/fix when the initial window size has been clipped by
- macOS because it didn't fit on the screen, in that case the
- frame size of the window is reported wrong if low-dpi rendering
- was requested (instead the high-dpi dimensions are returned)
- until the window is resized for the first time.
-
- Hooking into reshape and getting the frame dimensions seems to report
- the correct dimensions.
-*/
-- (void)reshape {
- [[self openGLContext] makeCurrentContext];
- _sapp_macos_update_dimensions();
- [super reshape];
-}
- (void)timerFired:(id)sender {
_SOKOL_UNUSED(sender);
[self setNeedsDisplay:YES];