Commit Graph

4140 Commits

Author SHA1 Message Date
David Capello
732f527eb1 Remove invalid checks to avoid recalculating the new palette for each frame in GifDecoder 2015-09-24 23:51:31 -03:00
David Capello
dd87c2ef17 Add minor check (bg index != local mask) to avoid checking the whole image 2015-09-24 23:50:44 -03:00
David Capello
43881af1f2 Add comments and DLOG() calls in gif_format.cpp 2015-09-24 23:49:01 -03:00
David Capello
5a339f7f55 Put the local colormap entry in the palette if we need to remap m_bgIndex 2015-09-24 23:47:33 -03:00
David Capello
8db6693136 Add colormap2rgba() helper function in gif_format.cpp 2015-09-24 23:45:10 -03:00
David Capello
e47fa9f045 We don't need to give a RgbMap to convert from RGB -> Indexed 2015-09-24 23:42:51 -03:00
David Capello
3c219571b1 Don't change mask-index entry if it's out of the bound in PaletteOptimizer::calculate() 2015-09-24 23:39:36 -03:00
David Capello
1bb0bca361 doc and gfx libraries depends on fixmath (fix #817) 2015-09-24 10:02:52 -03:00
David Capello
0e07a01a9b Add a color picker in the Insert Text dialog 2015-09-23 17:45:07 -03:00
David Capello
1ac39ff85b Add simple "Edit > Insert Text" menu option (related to #28) 2015-09-23 17:38:45 -03:00
David Capello
fc8f12f11c Fix freetype2 library compilation with Ninja makefiles 2015-09-22 19:29:27 -03:00
David Capello
ce96a77aae Add required flags to link the application with freetype2 library 2015-09-22 19:27:44 -03:00
David Capello
9b43aa11b3 Add freetype2 submodule 2015-09-22 19:27:04 -03:00
David Capello
4939a716a3 Remove freetype code 2015-09-22 19:24:36 -03:00
David Capello
e15b9aca21 Remove some #includes directives 2015-09-22 17:32:42 -03:00
David Capello
d55017cd17 Use advanced_mode.xml.h in cmd_advanced_mode.cpp 2015-09-22 17:27:47 -03:00
David Capello
52d091810b Use the generated goto_frame.xml.h file in cmd_goto_frame.cpp 2015-09-22 17:25:48 -03:00
David Capello
63aac49f81 Fix #include in webp_format.cpp with new generated files for widgets 2015-09-22 17:08:07 -03:00
David Capello
4a94799d47 Use generated "sprite_size.xml.h" file in "cmd_sprite_size.cpp" 2015-09-22 17:01:36 -03:00
David Capello
e7e9f1d482 Change name of generated files from "generated_file.h" to "file.xml.h" 2015-09-22 16:33:49 -03:00
David Capello
a06e01ff7e Rename ui::Entry::EntryChange to ui::Entry::Change 2015-09-22 16:22:47 -03:00
David Capello
3dfd6de4f0 Fix saving/loading .gif files w/completely opaque images but with local transparent index
There are .gif files that specified a local transparent index
but the frame pixels don't use that index (i.e. the frame is completely
opaque anyway). The same happens when we use a transparent layer but the
transparent color is not used (i.e. the layer is completely opaque anyway).
With this patch we fix loading/saving correctly this kind of files/sprites.

Fix #800
2015-09-22 14:39:47 -03:00
David Capello
bab13c4739 Enable some debugging messages in gif decoder/encoder 2015-09-22 11:42:50 -03:00
David Capello
7007fc2d0c Update code of conduct to v1.2.0 2015-09-21 18:44:13 -03:00
David Capello
9d8f859438 Fix minor formatting issues introduced in #812 2015-09-21 17:49:12 -03:00
David Capello
6a0f4afab2 Merge pull request #812 from Fojar/issue#806
Flattening transparent layers shouldn't create a background layer (fix #806)
2015-09-21 17:45:23 -03:00
David Capello
795c4d5a87 Use ctest to run tests 2015-09-21 16:45:25 -03:00
David Capello
d70dc87253 Do not create a she::System to run UI tests 2015-09-21 16:44:55 -03:00
Aravin
3eb01db8e1 Flatten layers command no longer converts result to background when it shouldn't. (fix #806) 2015-09-21 13:19:39 -04:00
David Capello
47530bdbe6 Add color_slider_height dimension in skin.xml 2015-09-21 11:53:39 -03:00
David Capello
5e3ba8237a Fix from_allegro() auxiliary function to get correct alpha values 2015-09-18 18:17:33 -03:00
David Capello
629bea41a8 Fix scroll in Preview window (fix #811)
Regression bug introduced in 9772f99303
2015-09-18 16:35:29 -03:00
David Capello
09e18ddf2b Fix loading of non-default themes with missing parts 2015-09-18 13:05:52 -03:00
David Capello
fedbe66980 Remove alert dialog used for debugging purposes only 2015-09-18 12:43:02 -03:00
David Capello
c37c790b47 Add "Open Folder" button in Preferences > Theme section 2015-09-18 12:39:46 -03:00
David Capello
83fe139600 Fix base::open_folder() in case paths are specified with non-standard slashes 2015-09-18 12:39:23 -03:00
David Capello
df629db6c6 Add "Theme" section in Preferences 2015-09-18 12:23:02 -03:00
David Capello
3abea9c4b3 Use Preferences class to store the active theme 2015-09-18 11:56:45 -03:00
David Capello
2679a7cb25 Update flic library 2015-09-17 17:32:06 -03:00
David Capello
eae6f7b5c1 Remove unused variables in ColorWheel::pickColor() 2015-09-17 17:31:58 -03:00
David Capello
3705d1bdb9 Fix initialization order of PaintInk members 2015-09-17 17:31:45 -03:00
David Capello
9e561148fc Minor changes in Timeline::showCel()
Removed some local variables.
2015-09-17 16:40:49 -03:00
David Capello
581fbb6632 Fix some scrolling issues in Timeline when clicking in a new cel 2015-09-17 16:39:55 -03:00
David Capello
43b3df52b9 Fix minor issues drawing transparent scrollbars in Timeline 2015-09-17 16:06:56 -03:00
David Capello
9772f99303 Add scroll bars to Timeline widget (fix #732)
Changes:
- Added ui::ScrollableViewDelegate so ui::ScrollBar can be child of
  a non-ui::View widget.
- Added a generic ui::setup_scrollbars() utility to locate
  horizontal/vertical scrollbars depending on the scrollable area and
  the available viewport area.
- Replaced Timeline::m_scroll_x/y ints with m_hbar/m_vbar widgets.
- Added transparent scrollbar look & feel.
- Added a "hover" state to mini-scrollbars used in sprite editors.
2015-09-17 15:19:47 -03:00
David Capello
4ff5f79035 Merge branch 'master' 2015-09-17 10:37:21 -03:00
David Capello
1b79bd75b9 Avoid drawing straight lines with Shift key + Magic Wand tool 2015-09-16 12:24:25 -03:00
David Capello
8aefa24a5b Add key modifier to draw straight lines from the last point (fix #562)
- Removed ToolLoop::screenToSprite(), now ToolLoopManager::Pointer has
  sprite coordinates (instead of screen coordinates)
2015-09-16 12:19:10 -03:00
David Capello
dc6161a66a Add mini_scrollbar_size dimension in skin.xml 2015-09-16 11:10:30 -03:00
David Capello
182a094f2b Add some checks to Menu::closeAll() to avoid accessing null pointers
These are not reproducible situations, but we've received a crash
report that indicates that these pointers can be null if some
unknown scenario.
2015-09-16 10:52:02 -03:00