[client] egl: make scale algorithms toggleable

The $escape+S keybinding now cycles through the available scale algorithms.
This allows the user to switch between algorithms if the automatic detection
turns out to be problematic.

The algorithms are renumbered so that 0 can be LG_SCALE_AUTO.
This commit is contained in:
Quantum
2021-02-21 23:56:51 -05:00
committed by Geoffrey McRae
parent 46758efc8f
commit 0512c88ea8
3 changed files with 54 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ make_object(
make_defines(
"${CMAKE_CURRENT_SOURCE_DIR}/shader/desktop_rgb.frag"
"${CMAKE_CURRENT_BINARY_DIR}/shader/desktop_rgh.def.h"
"${CMAKE_CURRENT_BINARY_DIR}/shader/desktop_rgb.def.h"
)
add_library(renderer_EGL STATIC
@@ -53,7 +53,7 @@ add_library(renderer_EGL STATIC
splash.c
alert.c
${EGL_SHADER_OBJS}
"${EGL_SHADER_INCS}/desktop_rgh.def.h"
"${EGL_SHADER_INCS}/desktop_rgb.def.h"
)
target_link_libraries(renderer_EGL