Commit Graph

16 Commits

Author SHA1 Message Date
David Capello
4e72997a02 Use Allegro's ASSERT() instead of assert(). 2010-08-03 23:33:44 -03:00
David Capello
a98113a92e Fixed problems with cel position alignment in Undoable::clear_mask and paste_image members functions. 2010-05-03 22:55:06 -03:00
David Capello
314e59dae1 Now the user can move selected pixels (still WIP).
Details:
Added EDITOR_STATE_MOVING_PIXELS state to Editor.
Added PixelsMovement helper class.
Added Undoable::paste_image().
2010-04-24 21:23:40 -03:00
David Capello
ed792eba1e Added getRgbMap() methods to Sprite class.
Added Palette* parameter to image_to_allegro() function and Image::to_allegro().
Removed orig_rgb_map.
Removed rgb_map usage (the Allegro global variable).
2010-04-20 23:44:31 -03:00
David Capello
475d0eeb1b Refactored Sprite class: no public variable members, all functions sprite_* go as Sprite function members, pimpl idiom. 2010-03-30 21:43:18 -03:00
David Capello
ee878c87e9 Modified Palette class to contain all functions to manipulate it as function members.
Modified its implementation to use std::vector<> instead of a raw C array[].
Now the number of colors in the sprite is more relevant (e.g. we should be able to create sprites of 4bpp, 16 colors).
2010-03-28 12:15:32 -03:00
David Capello
cc7fd95559 Added Undoable::deselect_mask() member function. 2010-03-01 23:01:43 -02:00
David Capello
c4afb1a236 Renamed get_sprite() to getSprite() in Layer class and Undoable class. 2010-03-01 22:59:16 -02:00
David Capello
b747ccdaa6 Updated copyright year to 2010 2010-02-01 21:25:40 +00:00
David Capello
33f804213d Added is_empty, freeze, unfreeze, add, reserve, and shrink function member of Mask class. 2010-01-27 21:16:49 +00:00
David Capello
f79ac322cb Fixed a bug in Undoable::copy_previous_frame (using LayerImage::add_cel directly instead of Undoable::add_cel). 2009-11-23 01:25:06 +00:00
David Capello
0e0dacb158 Fixed Undoable::background_from_layer when the layer to be converted to background has empty cels. 2009-11-18 15:24:02 +00:00
David Capello
be8a97f5b8 Fixed a bug in Undoable::clear_mask 2009-11-18 14:46:05 +00:00
David Capello
cbc0bf22bd Refactored Layer class to include all layer_* functions as member functions. 2009-11-17 13:12:26 +00:00
David Capello
f8f45dc0e5 + Added Flip Canvas Horizontal/Vertical commands.
+ Fixed problems with keyboard shortcuts for commands with arguments.
2009-07-10 02:08:41 +00:00
David Capello
3885f37f45 + CurrentSprite class was split in SpriteWrapper/Reader/Writer, and CurrentSpriteReader/Writer wrappers.
+ More routines are using exceptions for error handling.
+ Added JWidgetPtr class.
+ Added Undoable::set_imgtype/layer_from_background/flatten_layers.
2009-06-11 15:11:11 +00:00