Commit Graph

2789 Commits

Author SHA1 Message Date
David Capello
16da2512b4 Remove dependency with Allegro library in config.h file
* Created base::write24bits() function (and detect endianness with a
  special base/config.h.cmakein)
* Use _WIN32 instead of ALLEGRO_WINDOWS
* Use _DEBUG instead of DEBUGMODE
* Replaced AL_CONST with "const" in bmp_format.cpp
* Replace stricmp() with base::utf8_icmp()
2015-02-12 10:55:58 -03:00
David Capello
22f35ab249 Independent scroll/zoom in Preview window (part of issue #407) 2015-02-10 12:59:43 -03:00
David Capello
5f78fbe354 Rename MiniEditorWindow to PreviewEditorWindow 2015-02-10 09:38:07 -03:00
David Capello
d1d49c5038 Add TogglePreview command (rename "mini-editor" to "preview")
Renamed Preview to FullscreenPreview to avoid confusion.
As an extra "to do", we need to add command aliases, so Preview matches
FullscreenPreview (mainly to keep user defined keyboard shortcuts).
2015-02-10 09:07:04 -03:00
David Capello
52003da721 Merge branch 'feature/continuous-cels' 2015-02-09 11:42:01 -03:00
David Capello
b78883782d Merge branch 'master' of git@github.com:aseprite/aseprite.git 2015-02-09 11:41:52 -03:00
David Capello
3ebb708000 Add CelData to share image/position/opacity between linked cels
Changes:
- Merged app::cmd::ObjectIO into doc::SubObjectsIO
- Changed app::cmd::SetCelImage with app::cmd::SetCelData
- Added Cel::createCopy/Link() to avoid confunsion with Cel copy ctor
- Renamed Sprite::getImage() -> getImageRef()
- Added Sprite::getDataCelRef()
- Added doc::CelsRange helper to iterate cels
- Added Sprite::cels()/uniqueCels() member functions (removed
  Sprite::getCels())
- Added DocumentRange::convertToCels()
2015-02-09 11:40:43 -03:00
David Capello
a77300f96a Keep editor scroll when the timeline is hidden/shown
This is not complete yet, there is a little flicker.
2015-02-06 12:50:46 -03:00
David Capello
5010d01356 Add EditorView::editor() member function 2015-02-06 12:49:08 -03:00
David Capello
04e413ca23 FrameProperties: change label for a range of frames (to a more noticeable one) 2015-02-06 12:47:52 -03:00
David Capello
e975d1c710 Add Sprite::first/lastLayer() member functions 2015-02-04 08:19:02 -03:00
David Capello
5614b9b366 Add Export Sprite Sheet keyboard shortcut 2015-02-03 12:28:02 -03:00
David Capello
715b3fc9d8 Fix --trim and --save-as when allow non-linear history is enabled 2015-02-03 11:05:33 -03:00
David Capello
0aedc7c74e Merge branch '1.0'
Conflicts:
	src/app/commands/cmd_undo.cpp
	src/app/document_exporter.cpp
	src/app/document_exporter.h
2015-02-02 11:44:09 -03:00
David Capello
9546c0a5e3 Add --trim command line option 2015-02-02 10:42:07 -03:00
David Capello
beb02a3aa4 Minor change in file.h 2015-02-02 09:09:36 -03:00
David Capello
11c5b071cc Merge branch '1.0'
Conflicts:
	src/app/file/file.cpp
2015-02-01 12:30:33 -03:00
David Capello
480dd2f28c Remove printf() in fop_to_save_document() 2015-01-31 18:45:40 -03:00
David Capello
1321de9d58 Merge branch 'master' into feature/continuous-cels 2015-01-30 10:57:32 -03:00
David Capello
6f5f790be1 Merge branch 'master' of git@github.com:aseprite/aseprite.git 2015-01-29 12:33:14 -03:00
David Capello
06636fd16e Merge branch '1.0'
Conflicts:
	src/app/file/gif_format.cpp
	src/app/file/gif_options.h
	src/app/ui/editor/moving_cel_state.cpp
	src/app/ui/editor/standby_state.cpp
	src/app/util/range_utils.cpp
2015-01-29 12:18:13 -03:00
David Capello
77c2fb57a7 Fix get_cels_in_range() when range type != DocumentRange::kCels 2015-01-29 12:08:29 -03:00
Manuel Quiñones
bbb72de545 Fix link to the README in Help menu 2015-01-29 11:25:07 -03:00
David Capello
c4d0266b52 Add option to disable animation loop when saving GIF files (fix #585) 2015-01-29 11:24:43 -03:00
David Capello
ce6dc3f790 Add shortcut to toggle the visibility of active layer (fix #587) 2015-01-29 10:32:19 -03:00
David Capello
2cb02db49b Merge pull request #586 from manuq/fix-readme-url
Fix link to the README in Help menu
2015-01-28 20:12:29 -03:00
Manuel Quiñones
5363f187d1 Fix link to the README in Help menu 2015-01-28 12:34:09 -03:00
David Capello
2a582638ec Fix crash trying to move pixels and the current layer is nullptr
This fix was found thanks to a user provided memory dump. We don't know
why the layer can be nullptr, but there are some conditions preventing
this situation already in other places of the StandbyState::onMouseDown()
member function.
2015-01-28 11:04:07 -03:00
David Capello
6fd448d9dc Merge branch '1.0'
Conflicts:
	src/app/commands/cmd_flip.cpp
2015-01-27 10:00:37 -03:00
David Capello
dc7eeac2f8 Fix bug flipping rectangular regions on cels with pos != (0,0) 2015-01-27 08:00:53 -03:00
David Capello
b57445c2b1 Merge branch '1.0' 2015-01-26 10:58:56 -03:00
David Capello
e6dc8e47b9 Merge branch 'minimize-bug' into 1.0 2015-01-26 10:55:22 -03:00
David Capello
f5a49ad0df OSX: Fix image used to start animation before minimize 2015-01-26 10:29:00 -03:00
David Capello
6c3b4ba805 OSX: Fix infinite loop in waiting for lockFocusIfCanDraw=YES
There are some bug report about problems when the window is minimized.
I was able to reproduce this bug minimizing the window, hiding the dock
(using the system settings), showing the dock again, and trying to
restore the window.
2015-01-26 10:27:36 -03:00
David Capello
3745f563d0 Fix more problems with OS X mouse cursor
Don’t hide native cursor or show custom cursor if the mouse is outside
the main view.
2015-01-26 09:31:10 -03:00
David Capello
bf3c0890e9 Merge branch '1.0' 2015-01-25 23:10:51 -03:00
David Capello
72e2040c58 Add --filename-format option (fix #519) 2015-01-25 22:36:32 -03:00
David Capello
9d5d911830 Update version to 1.0.9-dev 2015-01-25 19:51:59 -03:00
David Capello
eff46d4134 Add infinite editor scroll to OS X
Fix osx_mouse_position()
2015-01-25 19:09:30 -03:00
David Capello
429c722f73 Fix OS X mouse position issues
Fix problems using absolute mouse positions in the view when the mouse
were outside the view area.
2015-01-25 19:08:41 -03:00
David Capello
8f63277a2b FilterManagerImpl: unlink cels when a filter is applied to multiple images 2015-01-22 12:06:08 -03:00
David Capello
ad8ed256de create_palette_from_rgb(): avoid processing the same (linked) image 2015-01-22 11:52:49 -03:00
David Capello
9740cfd08c MergeDownLayerCommand: unlink before merge down a linked cel 2015-01-22 11:36:05 -03:00
David Capello
3f99737758 Fix bug undoing a removed layer with linked cels
Images must be stored independently of cels. So read/write_cel() just
read/write the Cel information (with image ID only), and the image data
must be read/written by the caller.
2015-01-22 10:28:07 -03:00
David Capello
5258f8d4d7 Duplicate links when we duplicate a layer 2015-01-22 09:49:01 -03:00
David Capello
ca75dec911 Timeline: add minor help text in status bar for continuous/discontinuous layers 2015-01-21 23:50:06 -03:00
David Capello
ae0b66b043 Fix initialization order in SetCelImage class 2015-01-21 11:39:17 -03:00
David Capello
05b3db7de5 Add note in FliFormat::onLoad() (it should generated linked cels) 2015-01-21 11:37:47 -03:00
David Capello
06628a2ee7 Merge branch 'master' into feature/continuous-cels 2015-01-21 11:37:22 -03:00
David Capello
1b541e1a24 Fix initialization order of members 2015-01-21 11:35:35 -03:00