Skip to content

Commit

Permalink
Fix miscalculating the window dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
lulzshadowwalker committed Dec 10, 2023
1 parent d971539 commit ff649b0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,8 @@ static void popup_tray(Popup_Tray *pt, Rectangle preview_boundary)

static void preview_screen(void)
{
int w = GetRenderWidth();
int h = GetRenderHeight();
int w = GetScreenWidth();
int h = GetScreenHeight();

if (IsFileDropped()) {
FilePathList droppedFiles = LoadDroppedFiles();
Expand Down Expand Up @@ -1121,8 +1121,8 @@ static void preview_screen(void)
#ifdef MUSIALIZER_MICROPHONE
static void capture_screen(void)
{
int w = GetRenderWidth();
int h = GetRenderHeight();
int w = GetScreenWidth();
int h = GetScreenHeight();

if (p->microphone != NULL) {
if (IsKeyPressed(KEY_CAPTURE) || IsKeyPressed(KEY_ESCAPE)) {
Expand Down Expand Up @@ -1162,8 +1162,8 @@ static void capture_screen(void)

static void rendering_screen(void)
{
int w = GetRenderWidth();
int h = GetRenderHeight();
int w = GetScreenWidth();
int h = GetScreenHeight();

Track *track = current_track();
NOB_ASSERT(track != NULL);
Expand Down

0 comments on commit ff649b0

Please sign in to comment.