Skip to content

Commit

Permalink
Added comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Sep 17, 2024
1 parent 05c8033 commit 3baa44c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/docs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ v1.2.8
- Fixed Save Resolution setting being set to Half Size when Save Annotations
was on.
- Made Status Bar error/warnings remain longer (8 seconds instead of 5).
- Fixed a precision issue on Windows with arbitrary scalings like 115%.


v1.2.7
Expand Down
16 changes: 13 additions & 3 deletions src/lib/mrvGL/mrvTimelineViewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2278,21 +2278,31 @@ namespace mrv
w->fullscreen();
view->take_focus();

int PW = pixel_w();
int PH = pixel_h();

if (!secondary)
{
// Fullscreen does not update immediately, so we need
// to force a resize.
// Fullscreen does not update immediately on Linux, so we
// need to force a resize. On macOS, I am not sure, but
// we'll also leave it.
// On Windows, we should not call screen_xywh as it may
// be wrong for scaling factors like 115%.
#ifndef _WIN32
int X, Y, W, H;
int screen_num = w->screen_num();
Fl::screen_xywh(X, Y, W, H, screen_num);
w->resize(X, Y, W, H);

#endif

// When fullscreen happens, the tool group bar also resizes
// on width, so we need to bring it back to its originazl
// size.
p.ui->uiRegion->layout();

p.ui->uiViewGroup->layout();
p.ui->uiViewGroup->redraw();

}
}
}
Expand Down

0 comments on commit 3baa44c

Please sign in to comment.