mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-15 13:33:36 +02:00
Merge pull request #3985 from Laserlicht/fix_graphical
fixes graphical glitch when there is no savegame (ExtraOptions)
This commit is contained in:
commit
698d726cf9
4
.github/workflows/github.yml
vendored
4
.github/workflows/github.yml
vendored
@ -201,8 +201,8 @@ jobs:
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
if [[ ${{matrix.preset}} == linux-gcc-test ]]; then GCC13=1; fi
|
||||
cmake -DENABLE_CCACHE:BOOL=ON --preset ${{ matrix.preset }} ${GCC13:+-DCMAKE_C_COMPILER=gcc-13 -DCMAKE_CXX_COMPILER=g++-13}
|
||||
if [[ ${{matrix.preset}} == linux-gcc-test ]]; then GCC12=1; fi
|
||||
cmake -DENABLE_CCACHE:BOOL=ON --preset ${{ matrix.preset }} ${GCC12:+-DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12}
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
@ -10,9 +10,11 @@
|
||||
|
||||
#include "StdInc.h"
|
||||
#include "ExtraOptionsTab.h"
|
||||
#include "../widgets/Images.h"
|
||||
|
||||
ExtraOptionsTab::ExtraOptionsTab()
|
||||
: OptionsTabBase(JsonPath::builtin("config/widgets/extraOptionsTab.json"))
|
||||
{
|
||||
|
||||
if(auto textureCampaignOverdraw = widget<CFilledTexture>("textureCampaignOverdraw"))
|
||||
textureCampaignOverdraw->disable();
|
||||
}
|
||||
|
@ -428,8 +428,5 @@ void OptionsTabBase::recreate(bool campaign)
|
||||
}
|
||||
|
||||
if(auto textureCampaignOverdraw = widget<CFilledTexture>("textureCampaignOverdraw"))
|
||||
{
|
||||
if(!campaign)
|
||||
textureCampaignOverdraw->disable();
|
||||
}
|
||||
textureCampaignOverdraw->setEnabled(campaign);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user