Merge pull request #142 from Alpaq92/licenses-gibus

Licenses: gibus's only where gibus is built; custom commands as they are keyed
This commit is contained in:
2026-11-11 10:08:39 +01:00
committed by GitHub
2 changed files with 8 additions and 5 deletions
+5 -1
View File
@@ -704,7 +704,7 @@ set(REAKTOR_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" CACHE INTERNAL "")
foreach(_lic SDL/LICENSE.txt plutosvg/LICENSE nuklear/LICENSE
nukanim/LICENSE onlay/LICENSE watercss/LICENSE.md ionicons/LICENSE mojibake/LICENSE
kb/LICENSE gibus/LICENSE)
kb/LICENSE)
string(REGEX REPLACE "/.*" "" _who "${_lic}")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/${_lic}"
"${CMAKE_BINARY_DIR}/licenses/${_who}.txt" COPYONLY)
@@ -715,6 +715,10 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/freetype/docs/FTL.TXT"
"${CMAKE_BINARY_DIR}/licenses/freetype.txt" COPYONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/toml-c/LICENSE"
"${CMAKE_BINARY_DIR}/licenses/toml-c.txt" COPYONLY)
if(TARGET reaktor_gibus)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/gibus/LICENSE"
"${CMAKE_BINARY_DIR}/licenses/gibus.txt" COPYONLY)
endif()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/LICENSE"
"${CMAKE_BINARY_DIR}/licenses/reaktor.txt" COPYONLY)
set(REAKTOR_APP_RESOURCES "${APP_RESOURCES}" CACHE INTERNAL "")
+3 -4
View File
@@ -1036,10 +1036,9 @@ A texture an app changes in place through `reaktor_sdl_renderer` is not among
the commands, so a frame that only changes its pixels is skipped, or leaves
them where they were: for the change to show, draw it from a new texture or
at a new rectangle, or set `.draw_every_frame`. A custom command
(`nk_push_custom`, `NK_COMMAND_CUSTOM`) is recorded by its rectangle,
callback and data pointer only, so a callback whose drawing depends on state
behind the same pointer needs a new pointer when that state changes, or the
launch must set `.draw_every_frame`.
(`nk_push_custom`, `NK_COMMAND_CUSTOM`) is keyed by its clip, rectangle,
callback and data handle only, and redraws its whole clip: give it a new
handle or rectangle when what it draws changes, or set `.draw_every_frame`.
A finger that moves mostly up or down, by more than 8 pixels, scrolls the
panel under it: the runtime releases what the finger pressed, so nothing is