diff options
| author | Ray <[email protected]> | 2023-10-30 13:29:14 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-10-30 13:29:14 +0100 |
| commit | b8fce54c0fc443c76dcac7c7e1adba9fd7e2a4df (patch) | |
| tree | afab7c839edcb49e3872d7c80a46eecb0cc697d4 /src | |
| parent | abdebc244d41508c246a3a604f9f8b94d5758704 (diff) | |
| download | raylib-b8fce54c0fc443c76dcac7c7e1adba9fd7e2a4df.tar.gz raylib-b8fce54c0fc443c76dcac7c7e1adba9fd7e2a4df.zip | |
Minor tweaks
Diffstat (limited to 'src')
| -rw-r--r-- | src/raylib.h | 2 | ||||
| -rw-r--r-- | src/rcore.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/raylib.h b/src/raylib.h index 115e2be9..3f6328ad 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -506,7 +506,7 @@ typedef struct FilePathList { char **paths; // Filepaths entries } FilePathList; -// Automation event (opaque struct) +// Automation event typedef struct AutomationEvent { unsigned int frame; // Event frame unsigned int type; // Event type (AutomationEventType) diff --git a/src/rcore.c b/src/rcore.c index fdc52120..333fa4bf 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -2995,8 +2995,6 @@ void SetupViewport(int width, int height) // NOTE: We consider render size (scaled) and offset in case black bars are required and // render area does not match full display area (this situation is only applicable on fullscreen mode) #if defined(__APPLE__) - //float xScale = 1.0f, yScale = 1.0f; - //glfwGetWindowContentScale(CORE.Window.handle, &xScale, &yScale); Vector2 scale = GetWindowScaleDPI(); rlViewport(CORE.Window.renderOffset.x/2*scale.x, CORE.Window.renderOffset.y/2*scale.y, (CORE.Window.render.width)*scale.x, (CORE.Window.render.height)*scale.y); #else |
