Commit Graph

4286 Commits

Author SHA1 Message Date
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
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
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
David Capello
2fc447edd6 Disable GPU acceleration by default 2015-12-28 17:28:48 -03:00
David Capello
d496236d08 Add scrollbars to Skia/Win SkiaDisplay to support trackpad scroll messages 2015-12-28 16:54:50 -03:00
David Capello
8996d82d21 Redraw ColorBar when we change the active state in the Undo History window 2015-12-28 16:54:14 -03:00
David Capello
be214b715b Fix hang on Skia/Win when we press the HWND close button and an ui::Alert is shown
We don't have to close the OS window when its close button is pressed.
We just generate an CloseDisplay event and the client (app/ui layer) must
process it (e.g. check if there are no unsaved changes) and then close
the she::Display manually.
2015-12-28 16:31:57 -03:00
David Capello
a43f7cfa66 Fix crash disabling GPU acceleration on Skia/Win port 2015-12-28 15:56:41 -03:00
David Capello
49ad91dd79 Fix argc/argv parameters for app_main() in Skia/Win port 2015-12-28 15:34:00 -03:00
David Capello
199a3db278 Don't scroll invalid areas in Widget::scrollRegion() 2015-12-28 13:37:01 -03:00
David Capello
5074ef2d68 Handle several UI mouse movement events at once if they are in the she layer queue 2015-12-28 13:02:45 -03:00
David Capello
4d629b5f70 Update Skia port to support m48 version 2015-12-28 12:13:07 -03:00
David Capello
c8abf0cfc7 Fix regression: Show left/right mouse button triggers in keyboard shortcuts 2015-12-26 14:52:29 -03:00
David Capello
7b5827a151 Modify style of colored layers and cels in Timeline
Now colored layers/cels are filled with the user-defined color as
background and the text in the foreground.
2015-12-23 19:57:31 -03:00
David Capello
db13644e0a Fix problem setting cel color in all cels when a range is selected in Timeline 2015-12-23 14:19:09 -03:00
David Capello
5e67441af3 Fix logging string in GuiXml() ctor 2015-12-22 20:10:01 -03:00
David Capello
1c7ef06a4b Minor change in ResourceFinder logging strings 2015-12-22 20:08:37 -03:00
David Capello
5725b3bbf1 Load user brushes if the file exists and continue in case of error (fix #911) 2015-12-22 20:04:44 -03:00
David Capello
ff507af308 Redraw editor when symmetry is enabled/disabled
This redraw issue appears when we assign a key to switch the global
symmetry visibility (SymmetryModeCommand).
2015-12-22 19:05:11 -03:00
David Capello
07c3853bab Add the correct recent filename after saving a sequence of files 2015-12-22 18:07:06 -03:00
David Capello
978145ba7a Add warning before we save a sequence of bitmaps (fix #902) 2015-12-22 18:00:01 -03:00
David Capello
2f2bd40c84 Replace package name in src/file/file.cpp with PACKAGE macro 2015-12-22 17:55:35 -03:00