Skip to content

Commit

Permalink
VK: Reposition screen only if fitscreen is true.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamievlin committed Jan 2, 2024
1 parent 1dca96f commit d352207
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/vkrender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,11 @@ void AsyVkRender::vkrender(const string& prefix, const picture* pic, const strin
initWindow();

if(View) {
if(!settings::getSetting<bool>("fitscreen"))
auto const fitscreenSetting= settings::getSetting<bool>("fitscreen");
if (!fitscreenSetting)
Fitscreen=0;
firstFit=true;
fitscreen();
fitscreen(fitscreenSetting);
setosize();
}

Expand All @@ -697,10 +698,11 @@ void AsyVkRender::vkrender(const string& prefix, const picture* pic, const strin


if(View) {
if(!settings::getSetting<bool>("fitscreen"))
auto const fitscreenSetting= settings::getSetting<bool>("fitscreen");
if (!fitscreenSetting)
Fitscreen=0;
firstFit=true;
fitscreen();
fitscreen(fitscreenSetting);
setosize();
initializedView=true;
}
Expand Down

0 comments on commit d352207

Please sign in to comment.