Commit Graph

6621 Commits

Author SHA1 Message Date
David Capello
9e3c6dc5f4 Remove unused iterator from ui::Message 2018-12-15 10:08:03 -03:00
David Capello
02de8bf839 Simplify app::Console code 2018-12-14 18:08:12 -03:00
David Capello
31df433a10 Fix resetting some alerts with "Reset All Alert dialogs" button 2018-12-13 15:36:54 -03:00
David Capello
36edf3f842 Fix tooltip in SpriteProperties dialog 2018-12-13 15:25:31 -03:00
David Capello
7e638cddcc Fix keyboard shortcuts dialog items: don't create/dsetroy children widgets continuously inside KeyItem
Don't send a leave message (e.g. kMouseLeaveMessage) if the old
focused widget (mouse_widget) if an ancestor of the new focused
widget.
2018-12-13 14:47:19 -03:00
David Capello
c0fcef0240 Unify ToolTipManagers in MainWindow
In this way we avoid having too many message filters in the ui::Manager.
2018-12-13 14:08:56 -03:00
David Capello
3ccd09dd8d Replace internal macro with an inlined function 2018-12-13 11:00:22 -03:00
David Capello
06352f79e8 Add ui::IGNORE_MOUSE flag for static widgets
This avoids some MouseEnter/Leave messages between widgets that don't
need them.
2018-12-13 10:48:12 -03:00
David Capello
105d389fdc Remove list of recipients from ui::Message 2018-12-13 10:11:56 -03:00
David Capello
ab9883e260 Avoid running ui::Entry timer when it's not needed 2018-12-12 13:27:24 -03:00
David Capello
3b810701ce Minor change in Timer::stop() to avoid calling removeMessagesForTimer() when it's not necessary 2018-12-12 13:26:35 -03:00
David Capello
92330adc30 Avoid busy-waiting when a menu item is clicked
When a menu item is clicked a kExecuteMenuItemMessage is enqueued, so
the msg_queue will not be empty until we exit the menu item
callback (MenuItem::onClick()). This will prevent us to use a
os::Event::getEvent() where we can wait the OS for the event (see that
Manager::generateMessagesFromOSEvents() checks that msg_queue must be
empty to block the thread for OS events).
2018-12-12 00:40:39 -03:00
David Capello
45123d7466 Fix issue drawing disabled buttons in highlight state
This happen in some cases where a combobox is displayed above the
disabled button and we close the popup window of the combobox.
2018-12-12 00:38:42 -03:00
David Capello
21544bb666 Remove unused function Manager::removeMessage() 2018-12-12 00:27:54 -03:00
David Capello
53f2b4a121 Don't go to sleep if there are delayed painting messages 2018-12-12 00:26:28 -03:00
David Capello
e0b246dd87 Remove unused function Message::prependRecipient() 2018-12-12 00:24:27 -03:00
David Capello
a9355d048d Add icon for .aseprite-extension 2018-12-10 19:00:24 -03:00
David Capello
b2cafe4108 lua: Add app.params and --script-param
Now parameters for scripts can be specified from the CLI with
--script-params and from gui.xml or .aseprite-keys from <param>
sections.
2018-12-10 16:45:30 -03:00
David Capello
58c1ee1e0e Fix pixel perfect algorithm (fix #1945)
Regression introduced in 7c2038e7b5
2018-12-10 15:05:36 -03:00
David Capello
afa59e8aa4 lua: Fix access to sprites in Sprites collection 2018-12-10 12:05:54 -03:00
Rajiv Gupta
0203b65908 Add TGA v2.0 footer in TGA type file on export 2018-12-10 12:03:41 -03:00
David Capello
4542ed588e Try to fix appveyor builds for pull requests 2018-12-08 12:47:05 -03:00
David Capello
243474373f Fix compilation on Windows/MSVC 32-bit 2018-12-06 21:08:52 -03:00
David Capello
bc77d4c398 Add link to Skia documentation about compilation with Clang 2018-12-06 16:07:07 -03:00
David Capello
3ade2878cb Update RC copyright 2018-12-06 13:52:23 -03:00
David Capello
b1dccb1843 Fix setting duration of first frame when we call Sprite::addFrame(0) 2018-12-06 13:00:01 -03:00
David Capello
12444943ad Update copyright in initial status bar 2018-12-06 12:59:00 -03:00
David Capello
1d78e46bab lua: Fix Sprite:newFrame() to copy the given frame and return it (fix aseprite/api#4) 2018-12-06 12:38:27 -03:00
David Capello
ed1a6233eb lua: Add support to receive Frame/frame number in all functions 2018-12-06 12:36:44 -03:00
David Capello
0a558aabcf lua: Add Layer:cel() function 2018-12-06 12:31:46 -03:00
David Capello
dea61e50de lua: Add Frame.previous/next properties 2018-12-06 12:30:34 -03:00
David Capello
fffacf0a93 Update about dialog 2018-12-06 12:30:17 -03:00
David Capello
7d0a4abeae Update EULA 2018-12-06 12:25:23 -03:00
David Capello
ee6b4d4d09 lua: Add possibility to compare two ImageSpec 2018-12-06 12:13:31 -03:00
David Capello
259733e87d Fix is_empty_image() function using the maskColor in Indexed mode 2018-12-06 11:24:13 -03:00
David Capello
313498b8c8 Update laf module (fix #1921) 2018-12-06 11:11:57 -03:00
David Capello
7c2038e7b5 Adjust line algorithm depending on each case (fix #1944, #1894, #1395)
Related to this bug report:
https://community.aseprite.org/t/1045
2018-12-05 22:56:20 -03:00
David Capello
8106aeee44 lua: Fix Frame.from/toFrame properties (return a Frame instead of an integer) 2018-12-04 17:58:47 -03:00
David Capello
f6a2090ed9 Fix bug losing the ui::DIRTY flag from the ui::Manager after closing a fullscreen ui::Window 2018-12-04 17:44:21 -03:00
David Capello
0a179acc90 Minor change in Widget::invalidate*() funcs to use onInvalidateRegion() 2018-12-04 17:32:01 -03:00
David Capello
4790e3845a Fix regression introduced in 767897d665
In some cases we have to enable the DIRTY flag in the hierarchy.
Reproducible case: right-click a tab with an image, open in a folder,
then right-click the tab again.
2018-12-04 12:54:40 -03:00
David Capello
e3dc8fa3a6 Minor change 2018-12-04 12:51:56 -03:00
David Capello
dcf4f70a73 Update laf module 2018-12-04 11:44:49 -03:00
David Capello
81e1b5a41c Update pixman and disable DEBUG checks in region code 2018-12-04 11:43:59 -03:00
David Capello
2ffb708be8 Move Manager::invalidateDisplayRegion() to Manager::onInvalidateRegion() 2018-12-03 23:59:42 -03:00
David Capello
767897d665 Set DIRTY flag on Widgets without going to all parents 2018-12-03 22:16:00 -03:00
David Capello
9c33a556eb Add instructions in INSTALL file to compile Skia with Clang 2018-12-03 17:45:31 -03:00
David Capello
107840874b Update laf to fix #1942 2018-12-03 17:39:28 -03:00
David Capello
16c583917d Fix issues with multiple monitors and different color profiles on Windows and macOS (fix #1913) 2018-12-03 15:04:55 -03:00
David Capello
6bdde193f3 Don't limit the minimum windows size of the Preview window when we restore its bounds
Fixes https://community.aseprite.org/t/960
2018-11-29 11:44:10 -03:00