Minor tweaks

This commit is contained in:
Ray 2023-10-30 13:29:14 +01:00
parent abdebc244d
commit b8fce54c0f
2 changed files with 1 additions and 3 deletions

View file

@ -506,7 +506,7 @@ typedef struct FilePathList {
char **paths; // Filepaths entries char **paths; // Filepaths entries
} FilePathList; } FilePathList;
// Automation event (opaque struct) // Automation event
typedef struct AutomationEvent { typedef struct AutomationEvent {
unsigned int frame; // Event frame unsigned int frame; // Event frame
unsigned int type; // Event type (AutomationEventType) unsigned int type; // Event type (AutomationEventType)

View file

@ -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 // 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) // render area does not match full display area (this situation is only applicable on fullscreen mode)
#if defined(__APPLE__) #if defined(__APPLE__)
//float xScale = 1.0f, yScale = 1.0f;
//glfwGetWindowContentScale(CORE.Window.handle, &xScale, &yScale);
Vector2 scale = GetWindowScaleDPI(); 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); 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 #else