Commit Graph

19 Commits

Author SHA1 Message Date
David Capello 09538f9a1a clang-format all files 2024-12-16 14:52:19 -03:00
David Capello 963602444f Merge branch 'main' into beta 2021-05-23 13:16:36 -03:00
David Capello 141bc434bf Fix bug undoing a Remap operation when several colors are removed from the palette 2021-05-20 19:43:18 -03:00
David Capello 694ec4a86c Merge branch 'main' into beta 2021-05-11 18:59:24 -03:00
Gaspar Capello b1203216be Fix crash when remap on palettes with more than 256 colors 2021-05-11 18:57:55 -03:00
David Capello a2e2337b23 Fix Remap::invert() when a tile is moved out of the range 2020-07-20 16:25:36 -03:00
David Capello a80af2b304 Merge branch 'master' into tilemap-editor 2020-05-18 20:24:22 -03:00
David Capello b628e21e76 Replace MIN/MAX() macros with std::min/max() functions 2020-04-08 12:20:53 -03:00
David Capello 92b794d457 Add the final TilesetModes UI: Manual/Semi/Auto 2020-02-17 09:06:01 -03:00
Gaspar Capello f8cca1eba4 Removed unnecessary lines in remap.cpp 2020-02-11 09:24:24 -03:00
David Capello f696d895b4 Do not remap indexes between palette entries that are equal (fix #914) 2016-03-24 17:37:04 -03:00
David Capello 5f97e66a8b Include base/base.h on files that use MIN/MID/MAX 2016-03-03 19:18:46 -03:00
David Capello cc90c3e6f4 Fix remapping decoded gif files to the global colormap when mask != 0 2015-07-31 13:32:23 -03:00
David Capello 1b4ff37112 Simplify remap between old -> new palette
Now the remap is calculated from the old palette to the new palette when
the "Remap" button is pressed. In this way we can remap after loading
a new palette (fix #737), or after generating an optimized palette, or
changing colors (fix #563).
2015-07-28 17:16:32 -03:00
David Capello 210d9c7591 Add warning and correct undo information for unsafe remaps in 8-bit images (fix #715) 2015-07-06 16:15:54 -03:00
David Capello 11d86bb7c5 Add ability to copy colors using Ctrl + drag & drop 2015-05-09 15:57:46 -03:00
David Capello 62a3594598 Add ability to copy & paste colors with Ctrl+C and Ctrl+V
This commit includes the new doc::PalettePicks class. It's a helper
class to identify which entries are selected in the ColorBar.

We've removed the Copy/Paste buttons from the Palette Editor window.
2015-05-09 12:20:58 -03:00
David Capello b13601117f Add option to "remap" colors after a drag-and-drop (related to #563) 2015-03-23 12:57:59 -03:00
David Capello d14e4e8896 Add support to drag-and-drop colors in ColorBar/PaletteView (fix #37) 2015-03-23 12:25:32 -03:00