From 966daf5e34158d0e7a33a4a9505302bed2a0097b Mon Sep 17 00:00:00 2001 From: Gaspar Capello Date: Wed, 15 Apr 2020 15:36:50 -0300 Subject: [PATCH] Add RgbMap algorithm option in RGB -> Indexed color mode conversion dialog --- data/strings/en.ini | 3 +- data/widgets/color_mode.xml | 10 ++- data/widgets/new_sprite.xml | 5 +- data/widgets/palette_from_sprite.xml | 2 +- src/app/cmd/set_pixel_format.cpp | 6 +- src/app/cmd/set_pixel_format.h | 4 +- src/app/commands/cmd_change_pixel_format.cpp | 90 +++++++++++++++++--- src/app/doc_exporter.cpp | 1 + src/doc/sprite.cpp | 27 ++++-- src/doc/sprite.h | 9 +- 10 files changed, 126 insertions(+), 31 deletions(-) diff --git a/data/strings/en.ini b/data/strings/en.ini index d96da92c2..f057bfe94 100644 --- a/data/strings/en.ini +++ b/data/strings/en.ini @@ -666,6 +666,7 @@ Check in case that you want to establish the given option as the default option. END reset = Reset +advanced_options = Advanced Options [gif_options] title = GIF Options @@ -965,7 +966,6 @@ background = Background: transparent = &Transparent white = &White black = &Black -advanced_options = Advanced Options pixel_ratio = Pixel Aspect Ratio: square_pixels = Square Pixels (1:1) double_wide = Double-wide Pixels (2:1) @@ -1262,7 +1262,6 @@ new_palette = Create new palette, color count limit: replace_palette = Replace current palette replace_range = Replace current range alpha_channel = Create entries with alpha component -advanced_options = Advanced Options [palette_popup] load = &Load diff --git a/data/widgets/color_mode.xml b/data/widgets/color_mode.xml index adf4e8e9c..9cc1d2ea5 100644 --- a/data/widgets/color_mode.xml +++ b/data/widgets/color_mode.xml @@ -1,5 +1,5 @@ - + @@ -13,7 +13,15 @@