Commit Graph

2703 Commits

Author SHA1 Message Date
David Capello
e40d8e8cfe Make zoom tool more gentle 2015-01-04 16:52:16 -03:00
David Capello
f1f24cbcdd Replace doc::Stock with doc::ImageRef shared pointer
Changes:
* Add doc::ImageRef to count references to the same image between Cels
  (at this moment we cannot generate linked cels anyway)
* Remove doc:Stock class and doc::Sprite::m_stock member variable
* Remove app::undoers::Add/RemoveImage
* Add doc::SubObjectsIO and app::undoers::ObjectIO to
  replace doc::LayerSubObjectsSerializer
2015-01-04 10:58:14 -03:00
David Capello
1b55fe39dc Merge branch '1.0'
Conflicts:
	src/raster/conversion_alleg.cpp
2015-01-03 18:42:11 -03:00
David Capello
4358989633 Merge branch '1.0' of github.com:aseprite/aseprite into 1.0 2015-01-03 18:37:37 -03:00
David Capello
a2a3abfd6e Merge branch 'master' of git@github.com:aseprite/aseprite.git 2015-01-03 18:34:39 -03:00
David Capello
d9b2b2d8ea Add code of conduct 2015-01-03 18:34:26 -03:00
David Capello
8eb7ab355b Merge pull request #572 from whitingjp/median_cut_rgba_def
Include doc::rgba() function definition to avoid ambiguities in median_cut() algorithm
2015-01-03 11:12:08 -03:00
David Capello
71cdfe24c3 Merge pull request #568 from Mailaender/patch-1
Fix several gcc compiler warnings
2015-01-03 11:06:47 -03:00
David Capello
a332fb0bbe Merge pull request #571 from whitingjp/missing_runtime_error_header
Added missing header for std::runtime_error exception
2015-01-03 11:06:02 -03:00
Jonathan Whiting
6b6be0fd07 Include rgba function def, and un-ambiguate rgba in use 2015-01-01 15:50:46 +00:00
Jonathan Whiting
8fa2191dd9 Added missing header for runtime_error exception 2015-01-01 15:37:34 +00:00
David Capello
603dde343f Replace doc::LayerImage::getCel() with doc::Layer::cel() 2014-12-28 21:04:08 -03:00
David Capello
06d18f1e8a Replace doc::FrameNumber with doc::frame_t 2014-12-28 20:39:11 -03:00
David Capello
da1358c5dc Unify all render code in one library
Changes:
* Create render library (move util/render.cpp to render/render.cpp)
* Move app::Zoom class to render::Zoom
* Remove doc::Image::merge() member function
* Add gfx::Clip helper class (to clip dst/src rectangles before a blit)
* Move doc::composite_image() to render::composite_image()
* Remove doc::Sprite::render()
* Replace Sprite::getPixel() with render::get_sprite_pixel()
* Remove doc::layer_render() function
* Convert DitheringMethod to a enum class
* Add AppRender to configure a render::Render with the app configuration
* Move checked background preferences as document-specific configuration
* Add doc::Sprite::layer() and palette() member functions
* Add doc::Layer::cel() member function
* Add doc::Palette::entry() member function()
* Add doc::frame_t type
* Move create_palette_from_rgb/convert_pixel_format to render library
* ExportSpriteSheet doesn't need a temporary image now that we can specify
  the source rectangle in the render routine
2014-12-28 11:06:11 -03:00
Matthias Mailänder
d5068e071d fix "Program is using uninitialized variables." GCC warning 2014-12-21 15:22:42 +01:00
Matthias Mailänder
a523f686fc fix "Program returns random data in a function" GCC warning 2014-12-21 15:22:41 +01:00
David Capello
73658399cc Add setting/preference classes/enums generator
Changes:
* Add a class (Option<T>) to get/set/listen changes to one specific
  preference option
* Add data/pref.xml with the metadata to generate types/classes (not it's
  quite easy to add new preferences)
* Modify the generator to support generation of .h and .cpp files of
  preference types
* Add code to migrate old options to new ones (and functions to delete
  old values)
* Only a couple of options were migrated at the moment, it is a WIP, in the
  future we should completely remove ISettings and direct calls
  to set/get_config_*
2014-12-14 20:19:31 -03:00
David Capello
65da03d181 Use an internal ImageBuffer inside Mask class 2014-12-13 19:43:14 -03:00
David Capello
709d23606a Remove minor comment in gui.xml 2014-12-13 19:33:26 -03:00
David Capello
5c9240d4d1 Add Ctrl+T to transform the cel content (close #560) 2014-12-13 19:32:58 -03:00
David Capello
702d99af2d Minor change in undo label from selection commands 2014-12-13 19:26:10 -03:00
David Capello
f66b48c698 Change Mask member functions to use gfx::Rect instead of x,y,w,h args 2014-12-13 19:10:54 -03:00
David Capello
9f0d460624 Fix redraw problem after canceling "Canvas Size" command 2014-12-13 14:30:12 -03:00
David Capello
e79314d4e5 Critical fix in Image::clip_rects() 2014-12-09 11:53:57 -03:00
David Capello
a0d1c14ed2 Convert TODO item to issue #560 2014-12-09 11:03:05 -03:00
David Capello
afbd3b2d96 Optimize ToolLoop with modified regions of pixels
Here we avoid copying and clearing pixels that will not be used
in the whole tool loop process.
Changes:
* Add several member functions in ToolLoop to validate/invalidate regions
  of source/destination images so we know what regions are safe to use
  by inks and can be shown in the editor
* Add new DocumentObserver::onExposeSpritePixels() member to validate
  pixels that will be displayed in the editor
* Add Ink::needs/createSpecialSourceArea() member functions to validate
  extra areas for inks like blur or jumble
* Add undoers::ModifiedRegion to save the undo information about the
  modified region
* Add ShowHideDrawingCursor class
* Change "blur" tool policy from overlap to accumulate

(This is a real fix for issue #239)
2014-12-08 14:57:56 -03:00
David Capello
07c7756638 Add Brush::kMax/MinBrushSize constants 2014-12-07 20:50:26 -03:00
David Capello
6f528f3cf2 Merge branch '1.0' 2014-12-05 10:52:05 -03:00
David Capello
58ad5e2ecb Enable IsDeveloper flag when we check updates in _DEBUG 2014-12-05 10:38:22 -03:00
David Capello
0a68125372 Show some info to debug the update checking process in _DEBUG 2014-12-05 10:38:01 -03:00
David Capello
41c5605102 Fix regression: --help doesn't work on Windows
base::SystemConsole must be created before any std::cout/printf() is used
2014-12-05 02:25:49 -03:00
David Capello
5aea29348e Merge branch '1.0'
Conflicts:
	data/gui.xml
	src/app/CMakeLists.txt
	src/app/color_utils.cpp
	src/app/color_utils.h
	src/app/commands/cmd_preview.cpp
	src/app/document_exporter.cpp
	src/app/document_exporter.h
	src/app/ui/editor/standby_state.cpp
	src/config.h
	src/main/resources_win32.rc
2014-12-03 11:15:09 -03:00
David Capello
dc5fcd625a Mask color shouldn't make black color transparent in RGB and Grayscale images 2014-12-02 11:47:59 -03:00
David Capello
3b7f52ea5d Remove a custom target for each file to copy 2014-12-02 11:22:20 -03:00
David Capello
807598d5c3 Add post build target to copy the whole data/ dir into build/bin/ dir 2014-12-02 11:15:06 -03:00
David Capello
08f846c83d Convert gui.xml to Unix EOLs 2014-12-02 01:47:54 -03:00
David Capello
7c9303e91d Fix compilation of libcurl from a Visual Studio solution 2014-12-02 01:42:11 -03:00
David Capello
ce4021ba35 Minor change in main CMakeLists.txt 2014-12-02 01:38:38 -03:00
David Capello
e0264787c6 Fix compilation of gen utility (and tests) under Visual Studio solution (fix #541) 2014-12-02 01:38:25 -03:00
David Capello
d1c0a61b40 Change the compilation output path to CMAKE_BINARY_DIR/bin and /lib 2014-12-02 01:30:01 -03:00
David Capello
a0c8b1f188 Update version to 1.0.8-dev 2014-11-30 21:09:50 -03:00
David Capello
bc9f4b2c9b Don't load a file if it's already open on drop files event
This avoids to open a document two times on Mac OS X
from the command line (the file is loaded when we
process the command line, and by Finder, which send us
an application:openFile: message).
2014-11-30 21:06:29 -03:00
David Capello
a3ffe68f2d Minor check in ~ScopedHandle() 2014-11-30 21:02:41 -03:00
David Capello
b1d9d82fbf Don't initialize GuiSystem if it's not necessary 2014-11-30 21:01:54 -03:00
David Capello
7a4f4c9c5e Support running multiple instances on OS X (fix #533) 2014-11-30 21:00:27 -03:00
David Capello
a8af9df74a Remove unused variable 2014-11-30 20:54:46 -03:00
David Capello
2c5ef7d636 Add check for allegro_init() 2014-11-30 12:27:41 -03:00
David Capello
d92a5d08eb Fix compilation error in clang 2014-11-30 12:06:31 -03:00
David Capello
11041c00b4 Fix Timeline::hotThis() to highlight elements in the timeline correctly 2014-11-30 11:25:07 -03:00
David Capello
1dfb48e068 Final fix for "Paste at original position" (issue #57 and fix #336) 2014-11-30 10:40:32 -03:00