Commit Graph

6139 Commits

Author SHA1 Message Date
David Capello
5da8b2c8a9 Minor format changes in algo.cpp 2018-02-22 13:52:15 -03:00
David Capello
97251969f6
Merge pull request #1665 from yuxshao/fix-ellipse-gaps
Fix #1649
2018-02-22 13:47:39 -03:00
yuxshao
afdb6d22db Stop mnemonic processing from truncating multibyte characters (#1661) 2018-02-22 11:50:03 -03:00
David Capello
dee6ff6c7e Refactor: Use new base::paths type for list of filenames/extensions 2018-02-21 11:06:58 -03:00
David Capello
d82bd89d4f Fix license header in event.h and event_queue.h 2018-02-20 16:04:27 -03:00
David Capello
5d9bbe6651 Don't modify hex field when "edit palette mode" is enabled and the color is modified from the same hex field
Close #1632, #1636, #1637
2018-02-19 21:18:41 -03:00
Steven
debb8e9f32 similarly for algo_ellipsefill 2018-02-15 02:41:27 -05:00
Steven
8549774060 algo_ellipse restructure/reimplement 2018-02-14 22:51:34 -05:00
David Capello
6012f2389f Fix crash selecting layers (fix #1662)
This commit fixes the regression introduced in d59fd20489
and fixes the original problem in https://community.aseprite.org/t/play-animation-changes-selected-layer/989
2018-02-14 17:27:16 -03:00
David Capello
3d57184b56 Render extra/preview cels correctly on linked cels (fix #1664) 2018-02-14 13:29:03 -03:00
David Capello
f6cbbd1e89 Fix slice chunk on aseprite spec (fix #1663) 2018-02-14 09:27:09 -03:00
David Capello
166cb55c97 Add support for HSV color space in Adjust Hue/Saturation (fix #1559) 2018-02-09 17:39:56 -03:00
David Capello
c3a0c00a62 Update copyright year to 2018 2018-02-09 14:52:28 -03:00
David Capello
5b217dd5ce Change Hue/Saturation from addition/subtraction to multiplication (fix #1571) 2018-02-08 17:17:20 -03:00
David Capello
d59fd20489 Don't change selected layer when clicking in AniControls
Fix: https://community.aseprite.org/t/play-animation-changes-selected-layer/989
2018-02-08 15:32:33 -03:00
David Capello
d247e28e17 Make the first button as the default one
So Enter key just accept the message box and Esc cancels it.
2018-02-07 17:28:37 -03:00
David Capello
d4244fed48 Add options to avoid showing dialogs saving files (#917) 2018-02-07 17:28:01 -03:00
David Capello
b5dc3d263e Add options to suppress specific warnings (fix #917) 2018-02-07 14:35:12 -03:00
David Capello
70aaa4dada Don't lock the document for writing when saving
This improves the performance when we are selecting GIF/JPEG options and
move the window. So the Editor can redraw the sprite without delaying
the rendering.
2018-02-07 12:55:56 -03:00
David Capello
178df8d810 Show bitmap brushes with button colors from theme.xml
Requested here:
https://twitter.com/antonkudin/status/957004393144094720
2018-01-29 14:09:51 -03:00
David Capello
0eef231ff7 Add "selected_text" color to theme.xml for selected text on entry fields
Requested here:
https://twitter.com/antonkudin/status/957004393144094720
2018-01-29 14:09:22 -03:00
David Capello
c1342a7029 Use an opaque bitmap in checked DrawMode 2018-01-26 19:02:17 -03:00
David Capello
1b12f5ccbd Use an opaque surface in createRenderTarget() 2018-01-26 19:01:04 -03:00
David Capello
608c902901 macOS: Improve performance rendering the view content
Avoiding a slow path in CGContextDrawImage() where
argb32_image_mark_RGB32() is called when we scale the CGImage.
2018-01-26 17:18:31 -03:00
David Capello
8a70fa7daa Fix link to official Skia build instructions 2018-01-24 15:56:32 -03:00
David Capello
7b8d17b5cc Add support to compile with Skia chrome/m64 branch 2018-01-24 15:27:13 -03:00
David Capello
1898ce2886 Add the thumbnailer COM server for Windows
Note: Moved the desktop integration for Linux to src/desktop/linux
2018-01-02 17:03:46 -03:00
David Capello
80744eb80e Fix compilation error with gcc
We need #include <cstring> to use memcpy
2018-01-02 13:30:38 -03:00
David Capello
10e66bbd19 Remove #include to ui layer 2018-01-02 13:18:00 -03:00
David Capello
cf07af155f Move .aseprite file encoder to dio module (related to #379)
In this way we'll be able to use the encoder in a future
module (e.g. dll COM server) to generate thumbnails.
2018-01-02 13:12:50 -03:00
David Capello
11817e27fe Update copyright year in README file 2018-01-02 12:13:52 -03:00
David Capello
d1e9abf85c Move ComPtr class to laf-base library 2018-01-02 12:12:50 -03:00
David Capello
5811bba2b1 Several changes to the native file selector on all platforms
* Added she::FileDialog::setType() to select the different kind of
  dialog (open one file, multiple files, save one file, open a folder)
* Added capacity to select folders with she::FileDialog
* Added she::CommonFileDialog so all native dialogs share common code
* Windows:
  * Reimplemented using the IFileDialog COM interface introduced in
    Windows Vista (this one supports choosing folders when
    FOS_PICKFOLDERS flags is used)
  * Added she::ComPtr<> utility class to Windows port (it might be
    useful in laf::base in a future, or we might use the Microsoft
    CComPtr or _com_ptr_t types in a future)
* GTK:
  * Reimplemented to use gdk and gtk directly instead of using gtkmm
    library
  * Now it's centered on the given she::Display (instead of being
    centered on the screen)
  * Default location is the desktop instead of documents (this should
    be configurable in a future "more generic" solution)
  * Removed WITH_DEPRECATED_GLIB_SUPPORT and fixed compilation with GTK
    file selector
2017-12-21 16:35:12 -03:00
David Capello
d088ee0f38 Minor change in USE_SHARED_HARFBUZZ option text 2017-12-20 16:54:41 -03:00
David Capello
19890a1f24 Merge branch 'winterheart-ft' 2017-12-20 16:39:47 -03:00
David Capello
ddfe4e65b3 HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS might not be defined (harfbuzz 0.9.27) 2017-12-20 16:37:38 -03:00
David Capello
7f9d1f64d8 Merge branch 'ft' of https://github.com/winterheart/aseprite into winterheart-ft 2017-12-20 15:09:17 -03:00
SagePtr
b5573c9c5b
Update arne32.gpl to v20e5
Fixed missing black, reordered colors according to http://androidarts.com/palette/16pal_v20-Expanded_v5.gif , few RGB values slightly changed to match v5 palette.
2017-12-16 15:23:02 +07:00
David Capello
2807c10017 Fix crash deleting undo states on macOS when running from the app bundle
This bug wasn't reproduced in other situations. Only when running
Aseprite from the app bundle. It looks like app bundles are dynamically
linked with a different free/delete implementation which zeroes/modify
the deallocated memory.

I've posted an answer to this kind of problem on macOS here:
https://stackoverflow.com/a/47817729
2017-12-14 13:16:04 -03:00
David Capello
355d4b1135 Adjust scroll correctly when tiled mode is changed
https://community.aseprite.org/t/tile-mode-preview-incorrect/785
2017-12-14 09:11:20 -03:00
David Capello
a938fcec7f Fix ChangePixelFormatCommand label on keyboard shortcuts dialog when used without params 2017-12-13 17:19:00 -03:00
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