Commit Graph

6285 Commits

Author SHA1 Message Date
David Capello
0f18365d48 Update freetype module 2018-08-24 18:31:25 -03:00
David Capello
217ee45652 Update submodules 2018-08-24 18:29:31 -03:00
David Capello
4faa875cef Set LAF_OS_BACKEND only if it's not specified 2018-08-24 18:27:19 -03:00
David Capello
1b5fd7ccef Add ENABLE_NEWS and disable curl if it's not needed 2018-08-24 18:24:05 -03:00
David Capello
44a713a693 Change CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR in some cases 2018-08-24 18:20:08 -03:00
David Capello
abcd7bdf2e Add GEN_EXE var to customize code generator 2018-08-24 18:06:22 -03:00
David Capello
d4674e981a Compile lua only if ENABLE_SCRIPTING is enabled 2018-08-24 17:53:08 -03:00
David Capello
f8cb1db917 Remove webserver (never used) 2018-08-24 17:39:51 -03:00
David Capello
0fe4586bab Minor update in readme files 2018-08-23 17:49:20 -03:00
David Capello
070a6dcb42 Some changes in INSTALL instructions 2018-08-23 17:35:05 -03:00
David Capello
860edf6439 Merge branch 'os' (related to #139) 2018-08-23 17:27:52 -03:00
David Capello
5a6b5f1a92 Update laf submodule 2018-08-23 17:07:18 -03:00
David Capello
4fe66f2ffb Change scripting language to Lua 2018-08-22 14:54:51 -03:00
David Capello
70629d6f89 Use Tx instead of Transaction in commands 2018-08-20 16:00:59 -03:00
David Capello
587f697bda js: Add Site class and app.site property 2018-08-20 15:15:38 -03:00
David Capello
1306f9a8a1 js: Fix app.transaction() method
Now we are calling the argument instead of the same transaction()
function recursively.
2018-08-20 14:42:28 -03:00
David Capello
c902be8fdf js: add App.undo/redo() 2018-08-20 14:34:36 -03:00
David Capello
4779169676 js: Fix Sprite.width setter 2018-08-20 14:33:52 -03:00
David Capello
bc300bf986 Remove Image/SpriteWrap for scripting
From now on we can share the transaction in the app::Context instead
of having the transaction in a SpriteWrap. This is useful to run
macros/scripts in a near future calling commands (and all commands
could share the same transaction).

Some changes with this:

* Added app::Context::setTransaction/transaction() methods.
* Added Tx class to create a new Transaction or use the currenet
  app::Context transaction.
* Added App.transaction() scripting method.
2018-08-20 14:20:27 -03:00
David Capello
7620c05aed Exit with 1 when --script <script> fails
We throw an exception if the script fails, so app_main() catches it
and exit with code 1 (in this way we can detect the problem running
scripts from command line).
2018-08-20 13:59:52 -03:00
David Capello
9ae6178549 Update laf submodule 2018-08-17 23:29:01 -03:00
David Capello
efffde5673 Wait for OS messages when is possible
With this change we will reduce the CPU and energy consumption levels
as now we can go to sleep when there is no OS messages left and no
timers running.
2018-08-17 22:09:34 -03:00
David Capello
b275c24793 Stop StatusBar timer after showing the tooltip 2018-08-17 22:05:51 -03:00
David Capello
c6a5982c26 Don't call flushRedraw() when moving scroll
It looks like we don't need this call anymore (maybe it was there for
the Allegro port).
2018-08-17 16:45:57 -03:00
David Capello
4fb66b6a10 Use drawSurface() instead of drawRgbaSurface() to draw the render 2018-08-17 16:30:03 -03:00
David Capello
783b6f4ad9 Update observable module 2018-08-17 14:31:42 -03:00
David Capello
c8a88e72a6 Update submodules 2018-08-17 14:30:18 -03:00
David Capello
df59569cd8 INSTALL.md: Do aseprite clone and checkout in one step 2018-08-17 14:28:04 -03:00
David Capello
03e70a4b35 travis: Execute MATRIX_EVAL before install 2018-08-17 14:27:19 -03:00
Oliver Peter
70f0496cd9 Avoid dirent.d_type since it is not POSIX compatible.
This fixes the empty file dialog bug on XFS/JFS/... from issue #951
2018-08-17 10:28:53 -03:00
David Capello
6b7aec27b7 Improve ui::move_region() performance for regions with more than 1 rectangle 2018-08-16 20:46:36 -03:00
David Capello
72fb45aede Minor change (auto& -> const auto&) 2018-08-16 20:45:14 -03:00
David Capello
220d043873 Discard enqueued kWinMoveMessage messages (fix #1006)
When we're moving or resizing a window, sending several
kWinMoveMessage doesn't make sense. So we discard all kWinMoveMessage
and re-enqueue a new one with the latest window bounds.
2018-08-16 15:55:46 -03:00
David Capello
b5ace78bdf Discard enqueued kWinMoveMessage messages (fix #1006)
When we're moving or resizing a window, sending several
kWinMoveMessage doesn't make sense. So we discard all kWinMoveMessage
and re-enqueue a new one with the latest window bounds.
2018-08-16 15:40:53 -03:00
David Capello
9c032013f2 Fix confusing variable name (two vars named "cel") 2018-08-16 12:30:39 -03:00
David Capello
b83eddf2ea Fix uninitialized var 2018-08-16 12:30:23 -03:00
David Capello
f2609e7e26 Remove unused var in Release mode 2018-08-16 12:28:14 -03:00
David Capello
6643cae29a Update observable module 2018-08-16 12:27:57 -03:00
David Capello
e0caca3567 Fix crash when Aseprite is being closed 2018-08-16 12:27:41 -03:00
David Capello
373a64aa20 Add BubbleGum16 color palette by PineTreePizza
https://twitter.com/PineTreePizza/status/1009483133425717248
2018-08-15 13:45:08 -03:00
David Capello
6b7ba57ba2 macOS: Fix loading fonts from user home ~/Library/Fonts dir 2018-08-15 13:45:00 -03:00
David Capello
360172d7ba Fix .png loading progress (don't use uninitialized vars) 2018-08-15 13:44:48 -03:00
David Capello
09e40319f7 Fix crash when Aseprite is being closed 2018-08-13 21:33:59 -03:00
David Capello
1c3c21a6d5 Update laf module 2018-08-12 23:44:14 -03:00
David Capello
9712a02c8c Reduce the number of tested platforms in appveyor 2018-08-12 22:49:29 -03:00
David Capello
542e43140d Fix split_filename() failing tests using the new get_file_title_with_path() function 2018-08-12 20:13:27 -03:00
David Capello
1288b670c9 Update laf module 2018-08-11 00:21:03 -03:00
David Capello
68e4fe7762 Remove PLATFORM_LIBS var as we now use laf-os dependencies 2018-08-10 23:15:37 -03:00
David Capello
3e2a5cd4f3 travis/linux: Install dependencies and run tests with an X11 server 2018-08-10 22:23:07 -03:00
David Capello
7a36c77cc6 Update laf module 2018-08-10 22:09:33 -03:00