Skip to content

Commit

Permalink
Merge pull request #61 from lulzshadowwalker/master
Browse files Browse the repository at this point in the history
Fixed miscalculating the window dimensions
  • Loading branch information
rexim authored Dec 10, 2023
2 parents d971539 + ff649b0 commit 0cc08f5
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 0cc08f5

Please sign in to comment.