aboutsummaryrefslogtreecommitdiffstats
path: root/media/CMakeLists.txt
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2020-10-29 14:41:23 +0100
committerPierre Ossman <ossman@cendio.se>2020-10-29 14:41:23 +0100
commit9d9e9931f14062bb532b91f6bc0f64c2f8893b8f (patch)
treeca3953b13be5c24a6f40654a2894a4b6e7075c5e /media/CMakeLists.txt
parentd8c2e50111f44d0dd00fbaccc93cd7102a173df0 (diff)
downloadtigervnc-9d9e9931f14062bb532b91f6bc0f64c2f8893b8f.tar.gz
tigervnc-9d9e9931f14062bb532b91f6bc0f64c2f8893b8f.zip
Be explicit about SVG size when building icons
Not sure how this has changed, but ImageMagick is now using the first -size to also determine how to scale the SVGs, which is not what we want.
Diffstat (limited to 'media/CMakeLists.txt')
-rw-r--r--media/CMakeLists.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/media/CMakeLists.txt b/media/CMakeLists.txt
index 1daf8be5..91ea6f54 100644
--- a/media/CMakeLists.txt
+++ b/media/CMakeLists.txt
@@ -31,31 +31,31 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_16.png
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_22.png
COMMAND ${CONVERT_EXECUTABLE} -depth 8
-size 22x22 xc:none -gravity center -background transparent
- ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg -composite
- ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_22.png
+ -size 20x20 ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg
+ -composite ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_22.png
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg
COMMENT "Generating icons/tigervnc_22.png")
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_24.png
COMMAND ${CONVERT_EXECUTABLE} -depth 8
-size 24x24 xc:none -gravity center -background transparent
- ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg -composite
- ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_24.png
+ -size 20x20 ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg
+ -composite ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_24.png
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_20.svg
COMMENT "Generating icons/tigervnc_24.png")
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_32.png
COMMAND ${CONVERT_EXECUTABLE} -depth 8
-size 32x32 xc:none -gravity center -background transparent
- ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_28.svg -composite
- ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_32.png
+ -size 28x28 ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_28.svg
+ -composite ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_32.png
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_28.svg
COMMENT "Generating icons/tigervnc_32.png")
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_48.png
COMMAND ${CONVERT_EXECUTABLE} -depth 8
-size 48x48 xc:none -gravity center -background transparent
- ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_42.svg -composite
- ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_48.png
+ -size 42x42 ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_42.svg
+ -composite ${CMAKE_CURRENT_SOURCE_DIR}/icons/tigervnc_48.png
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tigervnc_42.svg
COMMENT "Generating icons/tigervnc_48.png")