Commit Graph

4405 Commits

Author SHA1 Message Date
David Capello
1deb9ae02b Fix the amount of space displaced by some shift+arrow keys (fix #940) 2016-02-11 11:40:51 -03:00
David Capello
127a5e76df Enable/disable GPU support on Skia backend if the skia_skgpu lib is available 2016-02-10 00:49:20 -03:00
David Capello
fc58daa814 Add support for ANGLE (D3D) on Skia port
Anyway we've disable the GPU support temporally (related to #960)
2016-02-09 23:12:59 -03:00
David Capello
d244af8fc1 Remove invalid ASSERT in AppBrushes::save() 2016-02-07 15:02:16 -03:00
David Capello
e843e7a9ba Do not overlap the menubar with a menubox 2016-02-07 14:41:43 -03:00
David Capello
36b4b65642 Update timeline cel skin parts by Ilija Melentijevic 2016-02-07 14:39:25 -03:00
David Capello
f530664657 New updates to the skin by Ilija Melentijevic
Updated graphics:
* the eyedropper, rotation, scaling, and zoom mouse cursors
* hand and zoom tool icons
* timeline icons (eye, padlock, gear/hammer icon, onionskin icon,
  linked cels icon)
2016-02-05 18:29:57 -03:00
David Capello
61927478ff Update copyright year in VERSIONINFO 2016-02-05 17:31:27 -03:00
David Capello
07a3ceded8 Fix website URL in VERSIONINFO comments 2016-02-05 17:31:18 -03:00
David Capello
4f1431ba2e Add the correct window icon in the Skia/Win port 2016-02-05 17:30:10 -03:00
David Capello
5fff73aded Avoid crash when we start the Skia window on WinXP
On Windows XP, after creating the HWND, when we add the scrollbars with
SetScrollInfo() in WinWindow<T>::createHwnd(), it generates a WM_SIZE,
which is calling resizeImpl(). And as SkiaWindow expects an already
created SkiaDisplay on SkiaWindow::resizeImpl(), the program crashes.
2016-02-05 17:10:01 -03:00
David Capello
87e5be45a9 Avoid deleting two times the direct SkSurface 2016-02-05 16:34:02 -03:00
David Capello
a77ae98fd0 Add keyboard shortcuts to change the color selector type (spectrum/color wheel) 2016-02-05 14:41:35 -03:00
David Capello
9c653ef86e Avoid missing DDE files because the loading dialog box/progress bar is open 2016-02-04 13:07:46 -03:00
David Capello
210ffc090e Open files from Windows Explorer using DDE so we re-use the running instance
Fix #477
2016-02-04 13:07:36 -03:00
David Capello
72338a6f26 Remove unused updater_lib variable in src/CMakeLists.txt 2016-02-02 12:21:01 -03:00
David Capello
aa7d3d8918 Minor change in ModifySelectionCommand::applyModifier()
Use local variable dstImage.
2016-02-01 18:24:34 -03:00
David Capello
bf632656c3 Remove unused local variable in FileList::onPaint() 2016-02-01 18:24:06 -03:00
David Capello
bb41bd32b4 Don't change cel user data when cel opacity is the only modified field 2016-02-01 18:09:02 -03:00
David Capello
be57d0332f Fix setting opacity or user data of linked cels when the first cel isn't included in the active range 2016-02-01 18:05:40 -03:00
David Capello
99d504a3aa Fix cel opacity slider enabled-status when we click a new cel in the Timeline
The timeline must update its internal range before it fires an active
site changed (Editor::setFrame/Layer()). So
ContextObserver::onActiveSiteChange() observers can access the updated
timeline range.
2016-02-01 15:21:17 -03:00
David Capello
3d23336815 Copy user data when we unlink cels 2016-02-01 10:58:29 -03:00
David Capello
b3a95266d7 Invalidate/redraw timeline in a general document update
This is needed if we change the user data color for some cels and we're
navigating the Undo History to undo/redo those changes. In this way we
see how the user data is updated in the Timeline.
2016-02-01 10:56:03 -03:00
David Capello
2f791b5ad1 Fix several problems with timeline and cel opacity slider
* Enable cel opacity slider when any transparent cel is selected
  (it doesn't matter if there are cels from a background layer selected
   too, the slider must be enabled for the transparent ones)
* Enable editing user data when we have a range of cels selected
  (it doesn't matter if the active cel is nullptr, we've to enable
   editing user data if there is any selected cel in the timeline range)
2016-02-01 10:52:05 -03:00
David Capello
3a79cf5559 Fix crash when the palette editor is slowly resized to its minimum size (fix #949)
It was caused by a division by zero.
2016-01-31 19:57:33 -03:00
David Capello
81d39664a7 Add an alternative message to debug crashes in compiled versions
As .dmp files are useful only for official releases (i.e. when we have the
compiled .exe+.pdb), this is an alternative message to stop receiving
.dmp files at support@aseprite.org that cannot be used to debug a crash.
2016-01-31 19:49:24 -03:00
David Capello
c8814ffb75 Fix ASSERT in ClipboardManager::~ClipboardManager() 2016-01-30 09:16:46 -03:00
David Capello
4dedc1e8d2 Fix crash pasting a document range from a closed document
Steps to reproduce the crash without this patch:
1. Create a new sprite
2. Copy the first cel from the Timeline
3. Create a new sprite
4. Close the first sprite
5. Paste the copied cel to the second sprite

The program crashed because the original sprite is invalid now. With this
patch we observe the main DocumentsObserver to check when the document is
closed/destroyed. In this way we can invalidate the clipboard content.
2016-01-30 09:13:46 -03:00
David Capello
40c834f50a Open files from Finder in Skia/OSX port 2016-01-29 16:07:39 -03:00
David Capello
e985227d95 Merge branch 'new-scroll' 2016-01-05 20:49:36 -03:00
David Capello
b0650f6afe Generalize View::setViewScroll() to blit valid/scrollable region automatically
With this change we are removing specific code to scroll the Editor widget.
Now if we use Editor::setEditorScroll() to scroll it should work as
View::setViewScroll(). In this way we remove the ugly "blitValidRegion"
parameter from setEditorScroll().

Changes:
* Removed Widget::scrollRegion() because each widget must control
  valid/invalid regions after a ui::move_region() in a very specific way
  (see View::setViewScroll() or Window::moveWindow)
* Invalidate the whole widget on Widget::setBoundsQuietly()
* Fixed problems blitting invalid regions/not yet updated/painted: using
  the new ui::Manager::m_invalidRegion.
* Added View::onSetViewScroll() and View::onScrollRegion()
* Added FileListView to avoid moving the thumbnail region when we scroll
2016-01-05 16:37:52 -03:00
David Capello
1260cf12c5 Minor comment changes in widget.h 2016-01-05 16:28:54 -03:00
David Capello
e64cc958ce Minor change/renames in Widget::flushRedraw() 2016-01-04 17:50:21 -03:00
David Capello
3bad2af2f3 Make Widget::offsetWidgets() function public 2016-01-04 17:49:40 -03:00
David Capello
bf9994387d Add some gfx::Region operators 2016-01-04 17:48:56 -03:00
David Capello
6123885241 Add required flag to compile on OS X without HarfBuzz library
From #909
2016-01-04 14:08:03 -03:00
David Capello
84781196e5 Update simpleini version 2016-01-04 12:37:48 -03:00
David Capello
938e025906 Update README copyright year 2016-01-04 12:29:19 -03:00
David Capello
3087ddd5b9 Update pixman to 0.33.6 2016-01-04 12:27:25 -03:00
David Capello
d77aabd3f3 Update freetype2 version
Should fix #909 and #930
2016-01-04 12:19:19 -03:00
David Capello
eba8de0306 Fix slow scroll/selection movement with Alleg4 port (fix #929) 2016-01-04 12:15:23 -03:00
Jay Pinkman
32accc7e00 Mention cmake-gui and add documentation links 2015-12-31 00:58:25 +02:00
David Capello
910612101a Fix slow performance pressing Alt or Ctrl key on Editor in Alleg4/Win port 2015-12-30 17:30:20 -03:00
Jay Pinkman
c2a7441afb Improve build instructions
i changed all the commands from `cmake .. <options>` to `cmake <options> ..` - this is the standard order and on BSD systems the C library requires options to precede other arguments (although i don't know if this affects CMake).

also i was confused by the instructions, i thought i have to use `build/bin/aseprite` and shouldn't run `make install`. maybe it's just me but i still clarified that part.
2015-12-30 17:29:53 +02:00
David Capello
0f28e216ba Fix Manager::pumpQueue() when DEBUG_PAINT_EVENTS is defined 2015-12-30 12:24:26 -03:00
David Capello
e97a7070d6 Fix she::Event::setRepeat() calls on Skia/Win WM_KEYUP/DOWN processing 2015-12-30 10:33:44 -03:00
David Capello
5b38caed00 Reduce code in StateWithWheelBehavior::onMouseWheel() 2015-12-30 10:29:13 -03:00
David Capello
a5a044f333 Make main window key and order to front in Skia/OSX port 2015-12-28 18:33:57 -03:00
David Capello
851413e2a6 Remove unused variable in BrushPopup::regenerate() 2015-12-28 18:02:38 -03:00
David Capello
a6544d92af Improve default window size on Skia/Win port (fix #693) 2015-12-28 18:02:07 -03:00