Commit Graph

5895 Commits

Author SHA1 Message Date
David Capello
9520dee00a Avoid random crashes changing Color Mode with a TTF font in the theme
This is a weird combination of things:
1. StatusBar::onPixelFormatChanged() is being called in a non-UI thread
   because ChangePixelFormatCommand changes the color mode from a
   Job (background thread).
2. The UI layer is not prepared to work on multithreading, so all UI
   stuff should be used in the main UI thread (anyway, generally, the UI
   layer doesn't crash if it's used by multiple threads).
3. The harfbuzz library (used for TTF fonts) crashes if it is used by
   multiple threads, so that was the trigger of this crash.
2017-12-13 17:11:53 -03:00
David Capello
a307668552 ChangePixelFormatCommand can be called without params 2017-12-13 17:09:13 -03:00
David Capello
b30b0de52e Update harfbuzz module 2017-12-13 16:10:00 -03:00
David Capello
e4abaafec3 Don't add useless cmd::SetPalette() when converting a sprite to Grayscale w/grayscale palette 2017-12-13 15:44:03 -03:00
David Capello
195a87aca3 Remove unused Font forward declarations 2017-12-13 14:31:17 -03:00
David Capello
ede5412d5e Fix usage of TrueType fonts on Linux/Allegro port 2017-12-13 14:30:49 -03:00
David Capello
8a738bd440 Finally fix for Shift+2 on macOS on English keyboard layout (fix #1627)
Previous fix in 9378379cb8 works only for
Spanish layout.
2017-12-13 12:27:57 -03:00
David Capello
4c9e67de18 Linux: Fix crash using Aseprite in batch mode
Reported here:
http://steamcommunity.com/app/431730/discussions/2/1499000547480220354/
2017-12-11 13:40:26 -03:00
David Capello
31bf851d4f Fix X11 app icon 2017-12-06 18:50:23 -03:00
David Capello
9378379cb8 Now Shift+2 shortcut can be used on macOS (fix #1604) 2017-12-06 16:09:23 -03:00
David Capello
7d9a0379e4 Replace REPORT_KEYS with KEY_TRACE in vk.mm 2017-12-06 16:08:50 -03:00
David Capello
ffe25c9750 Disable KEY_TRACE in she/win/window.cpp 2017-12-06 15:41:29 -03:00
David Capello
086445d9a1 Fix triggering commands with Shift+key when a freehand tool is the active one (reported in #1604) 2017-12-06 15:20:29 -03:00
David Capello
29d2988112 Fix new Ctrl+' and Ctrl+Shift+' keyboard shortcuts on Windows
Now Unicode characters are included on keyboard messages generated from
a Control+key on Windows.
2017-12-06 15:06:56 -03:00
David Capello
7dcc0072f1 Add SwitchNonactiveLayersOpacity command (fix #1515)
This is a temporal solution but it's good enough for an experimental
feature.
2017-12-06 14:44:40 -03:00
David Capello
b0b3818267 Possibility to assign same key to several tools (fix #1460) 2017-12-06 10:22:32 -03:00
David Capello
150b27862f Keyboard shortcuts to avoid selecting Paint Bucket and Gradient with G key 2017-12-06 09:55:07 -03:00
David Capello
2ccbf44a55 Fix crosshair glitches on Editor when brush size popup is open 2017-12-05 13:31:34 -03:00
David Capello
48fc0cbcb4 Don't allow shift pixels on locked layer
Discussion: https://community.aseprite.org/t/750
2017-12-01 17:18:23 -03:00
David Capello
21248b96dc Don't apply Flip/Rotate commands to locked layers
Several issues fixed from https://community.aseprite.org/t/750

- Don't apply flip/rotate commands to cels from locked layers
- Show a status bar tooltip when all selected layers are locked
- Keep the timeline range enabled after the flip/rotate command
2017-12-01 17:14:18 -03:00
David Capello
7682971acb Don't allow Insert Text when the layer is locked
Discussion: https://community.aseprite.org/t/750
2017-12-01 17:10:45 -03:00
David Capello
e0a60b6748 Generate the list of command IDs from en.ini file 2017-12-01 15:10:21 -03:00
David Capello
ccee49c02b Move command friendly names to the strings file
Related to #124
2017-11-30 23:41:45 -03:00
David Capello
3c3914c7d8 Fix some warnings in timeline.cpp 2017-11-30 23:40:46 -03:00
David Capello
c7c049028b Add command to show the brushes popup 2017-11-30 16:23:31 -03:00
David Capello
264c59bbc1 Fix assigning configured shortcuts to QuickCommands
As QuickCommands will be created in MainWindow widgets mainly, we have
to create all widgets before we load the keyboard shortcuts.
2017-11-30 16:22:44 -03:00
David Capello
297dbbf913 Minor change in color_bar.cpp to use COLOR_BAR_TRACE() 2017-11-30 15:00:24 -03:00
David Capello
5f33b55a11 Add new commands to show color bar menus/options
Added QuickCommand class to create commands in the relevant
place (e.g. the ColorBar commands can be created in
ColorBar::registerCommands()).
2017-11-30 14:51:13 -03:00
David Capello
a75c8fb1b8 Convert list of commands to a map 2017-11-30 12:33:08 -03:00
David Capello
eb3143ce21 Rename CommandsModule to Commands 2017-11-30 12:24:07 -03:00
David Capello
c0ef5e2a15 Remove unused variable from Sprite_set_colorMode() 2017-11-30 11:54:50 -03:00
David Capello
677d5253ad Linux: Don't keep Alt flag pressed when we Alt+tab the window 2017-11-29 18:07:36 -03:00
David Capello
5e7cc50cb0 Don't call create_sub_bitmap() to create empty bitmaps 2017-11-29 16:20:48 -03:00
David Capello
d3d107b0ac Add Trim option in Export Sprite Sheet 2017-11-29 16:17:30 -03:00
David Capello
d67b083e42 Fix Alt key modifier on Linux 2017-11-29 15:39:44 -03:00
David Capello
daf2672dbd Removed unused file in she/alleg4 port for macOS
macOS doesn't support Allegro port since several versions ago.
2017-11-29 15:33:16 -03:00
David Capello
519715224e Fix displaying several keyboard shortcuts for the same command 2017-11-29 15:28:04 -03:00
David Capello
543752d708 Add 128x128 and 256x256 images in .ico files (#1609) 2017-11-29 09:41:46 -03:00
David Capello
4e858ac667 Fix pico-8 color palette (fix #1623) 2017-11-27 14:11:11 -03:00
David Capello
76aee61eae Fix drawing straight lines w/Pencil tool and Shift+right button
https://community.aseprite.org/t/eraser-tool-right-click-shift-should-work/726
2017-11-27 13:54:27 -03:00
David Capello
848ce5972d win8: Add support to double tap with pen
Discussion:
https://community.aseprite.org/t/surface-pro-3-file-navigation/696
2017-11-23 17:03:24 -03:00
David Capello
e1232516ee Don't discard custom brush when we use eyedropper (fix #1557) 2017-11-23 11:35:41 -03:00
David Capello
ab51f02711 Fix crash applying a filter w/all layers locked (fix #1610)
The m_transaction field of FilterManagerImpl::commitTransaction() was
nullptr because FilterManagerImpl::applyToTarget() was returning without
creating the m_transaction.
2017-11-22 11:46:06 -03:00
David Capello
c80d914e1a Fix toggle timeline thumbnails command (fix #1518) 2017-11-21 14:34:03 -03:00
David Capello
27f0182bdb Fix redrawing PaletteView when dragging colors (fix #1616)
Regression introduced in 86c8bc57a5
2017-11-17 11:26:40 -03:00
David Capello
338ed9dd49 Fix SelectBoxState when tiled mode is enabled 2017-11-13 21:08:15 -03:00
David Capello
72610099ae win8: the first touch w/fingers now move the mouse cursor 2017-11-10 19:07:50 -03:00
David Capello
0d6a432ef5 Zoom timeline with Ctrl+mouse wheel 2017-11-10 18:24:06 -03:00
David Capello
c13f6276ad Reduce the updated area on tools with TracePolicy = Last 2017-11-10 16:59:37 -03:00
David Capello
b856c71f9d Fix filters preview for tiled mode 2017-11-10 16:31:06 -03:00