Show GPU option only in DEVMODE

We've update the label "GPU acceleration" to avoid confusion between
developers so they know that this option is not enabled in the final
release.
This commit is contained in:
David Capello 2023-04-03 16:09:26 -03:00
parent 7781ff69a1
commit da0a8b7916
2 changed files with 3 additions and 3 deletions

View File

@ -1463,7 +1463,7 @@ screen_scaling = Screen Scaling:
ui_scaling = UI Elements Scaling: ui_scaling = UI Elements Scaling:
language = Language: language = Language:
download_translations = Download Translations download_translations = Download Translations
gpu_acceleration = GPU acceleration gpu_acceleration = GPU acceleration [DEVMODE/INTERNAL TESTING ONLY]
gpu_acceleration_tooltip = Check this option to enable hardware acceleration gpu_acceleration_tooltip = Check this option to enable hardware acceleration
show_menu_bar = Show Aseprite menu bar show_menu_bar = Show Aseprite menu bar
show_home = Show Home tab when Aseprite is started show_home = Show Home tab when Aseprite is started

View File

@ -497,7 +497,7 @@ public:
// Scaling // Scaling
selectScalingItems(); selectScalingItems();
#ifdef _DEBUG // TODO enable this on Release when Aseprite supports #ifdef ENABLE_DEVMODE // TODO enable this on Release when Aseprite supports
// GPU-acceleration properly // GPU-acceleration properly
if (os::instance()->hasCapability(os::Capabilities::GpuAccelerationSwitch)) { if (os::instance()->hasCapability(os::Capabilities::GpuAccelerationSwitch)) {
gpuAcceleration()->setSelected(m_pref.general.gpuAcceleration()); gpuAcceleration()->setSelected(m_pref.general.gpuAcceleration());