Commit Graph

2373 Commits

Author SHA1 Message Date
David Capello
958d8f922f Merge branch 'next' into dev 2014-07-11 01:15:30 -03:00
David Capello
e09bb7d3f2 Fix file_tests 2014-07-06 22:10:48 -03:00
David Capello
c004fb6bcd Set palette when the frame of the current editor changes 2014-07-06 22:10:30 -03:00
David Capello
4a17ee351c Minor changes in cmd_goto_frame.cpp 2014-07-06 21:48:46 -03:00
David Capello
fa760d8a21 Restore filename if "save as" fails 2014-07-06 21:29:36 -03:00
David Capello
6861bd7bb7 Minor change in options dialog 2014-07-06 20:51:27 -03:00
David Capello
b1d27d66e2 Fix issue 414 for WinXP in classic theme: unable to resize window from bottom/right edges
On WinXP classic theme we receive a WM_NCHITTEST messages for the
scrollbars, and as they overlap the resize borders (see WM_NCCALCSIZE
handler) we have to return a proper value as if they really were the
borders of the window.

Note: Scrollbars are still visible in classic theme, that is just ugly,
but at least the user can resize the window from bottom and right edges.
2014-07-06 20:37:13 -03:00
David Capello
d3aa22ac12 Mac OS X: Hide native mouse cursor (related to issue 350) 2014-06-29 16:10:12 -03:00
David Capello
5c4c155dea Missing #include <stdexcept> to use std::runtime_error exception 2014-06-29 16:07:43 -03:00
David Capello
619cca7dfd Fix passing non-POD type to printf-like function 2014-06-29 16:07:24 -03:00
David Capello
950a9fe82f Add button to create new folders in FileSelector (issue 233) 2014-06-28 18:01:32 -03:00
David Capello
4b7bf5b835 Merge she::Color and ui::Color types in gfx::Color 2014-06-28 16:10:39 -03:00
David Capello
901b2acc06 Remove some references to <allegro.h> 2014-06-28 11:17:22 -03:00
David Capello
b37ec489f6 Remove ui::Widget::isScancodeMnemonic() member function 2014-06-28 11:14:03 -03:00
David Capello
2fa7ee5a77 Fix tests/test.h 2014-06-28 10:49:47 -03:00
David Capello
738d6ec4ee Rename _unittest.cpp files to _tests.cpp 2014-06-28 10:49:38 -03:00
David Capello
7ebc90678f Use ui::Graphics instead of Allegro in Editor's brush preview routines
* Remove color_utils::color_for_allegro()
* Rename editor_draw/move/clear_cursor() -> draw/move/clearBrushPreview()
* Rename Editor::get_raw_cursor_color() and Editor::is_cursor_mask()
* Add Graphics::get/putPixel() and Graphics::width/height()
* Add SetClip class
2014-06-28 10:33:58 -03:00
David Capello
0b8d88d6ee Add "slice" ink and tool (it is not yet implemented) 2014-06-27 22:58:38 -03:00
David Capello
9fe53de8eb Fix regression bug in SkinTheme::sliceSheet() introduced in dbad153698
The skin's sprite sheet is loaded as an RGBA surface, and slices must be
created as RGBA sub-surfaces.
2014-06-26 23:53:41 -03:00
David Capello
5bbff161b9 Now ui::Graphics uses she::Surface instead of Allegro BITMAP 2014-06-26 22:14:39 -03:00
David Capello
331688bd86 Add "Zoom with Scroll Wheel" option (on/true by default) 2014-06-22 22:35:51 -03:00
David Capello
0c250df97a Separate Options dialog in different sections
* Add ui::Panel widget
2014-06-22 21:56:04 -03:00
David Capello
1f5ae8d75b Remove <allegro.h> from resource_finder.cpp 2014-06-22 18:59:19 -03:00
David Capello
10bd7142eb Change ui::ImageView to use she::Surface instead of Allegro BITMAP 2014-06-22 18:57:30 -03:00
David Capello
dbad153698 Add she::Font class (wrapper of Allegro FONT)
This is an huge refactor to avoid handling Allegro FONT directly. Some
changes:
* Add she::System::defaultDisplay/Font, createRgbaSurface, loadSurface,
  and loadRgbaSurface.
* Rename she::CreateSystem/Instance to she::create_system/instance.
* Remove ui/font.cpp and move ui/fontbmp.cpp to she library.
* ui::IButtonIcon uses she::Surface instead of BITMAP.
* Rename she::LockedSurface::drawAlphaSurface -> drawRgbaSurface
* Rename ui::SetDisplay -> set_display
* Rename _ji_font_text_len -> ui::Graphics::measureUIStringLength
2014-06-22 18:53:14 -03:00
David Capello
b7dca01532 Win: Use MessageBoxW instead of allegro_message() in she::error_message() 2014-06-18 01:00:18 -03:00
David Capello
1ff5e82cef Use she::error_message() in app_main() 2014-06-18 00:59:50 -03:00
David Capello
7d0e0f4b4a Remove references to allegro_message() from outside of she library 2014-06-18 00:53:15 -03:00
David Capello
76ec93ea80 Add ResourcesListBox as a generic version of PalettesListBox 2014-06-15 23:05:14 -03:00
David Capello
15fac2ee04 Merge branch 'dev' 2014-06-15 14:57:18 -03:00
David Capello
abe957f037 Update version to 1.0.2 2014-06-15 12:03:23 -03:00
David Capello
c639b4dba3 Add "dots" freehand algorithm (change to ButtonSet the selection of FreehandAlgorithm) 2014-06-15 04:14:53 -03:00
David Capello
b95ba82c87 Remove item from TODO that is already done 2014-06-15 04:08:27 -03:00
David Capello
12b30248bf Fix ase_parallelogram_map_standard for RGB/Grayscale for mask with alpha=0
If the transparent/mask color has alpha = 0, we cannot filter by
RGB/Grayscale values, we have to blend all colors anyway. Only when
the mask has alpha > 0 we can check if the RGB values are different to
the mask RGB values. In other words, comparing the source color with the
mask, makes sense only when the mask has alpha > 0.
2014-06-14 21:30:01 -03:00
David Capello
9ac51fd0be Rename raster::Pen -> raster::Brush 2014-06-14 15:09:43 -03:00
David Capello
153071f082 Fix issue 406: persist ISelectionSettings 2014-06-14 01:35:04 -03:00
David Capello
095d31a91d Fix SkinTheme::paintMenuItem() to paint check boxes correctly in 1:1 screen scale 2014-06-14 00:58:15 -03:00
David Capello
a21340cbf7 Update src/README.md 2014-06-14 00:50:10 -03:00
David Capello
07aaa78ea9 Minor fix in she::Event::type() return type 2014-06-14 00:49:06 -03:00
David Capello
5db6feef89 Fix RotSprite for RGB and Grayscale images 2014-06-14 00:46:33 -03:00
David Capello
8996827249 Use ColorPicker in ColorButton 2014-06-14 00:42:50 -03:00
David Capello
47cdd4af67 Fix ase_parallelogram_map_standard() for RGB and Grayscale images with customized transparent color 2014-06-14 00:42:30 -03:00
David Capello
1d3854c670 Change default location of aseprite.ini on Windows platform
The new default location is %AppData%/Aseprite folder. This will be useful
for a future setup program. So if aseprite.ini is located in aseprite.exe
directory, it acts like a portable program, in other case it acts like
an installed program.
2014-06-13 23:04:00 -03:00
David Capello
3c959233b6 Add link label in Options dialog to locate the configuration file 2014-06-13 23:00:49 -03:00
David Capello
b54ed9cfe7 Minor change in About dialog 2014-06-13 22:56:21 -03:00
David Capello
be817c515c Fix issue 410: Unexpected drawing behaviour on empty layer with Transparent Color index set to non-0
When we create a new image for the sprite, we've to adjust the image mask
color to the sprite mask color (as the image isn't in the Stock yet).
This problem appears in v1.0.1 (9dfec919e4)
because now we don't change the mask color of sprite images in the
rendering process. This kind of bug can be detected running on debug
mode with an assert in the render procedure.
2014-06-12 23:44:34 -03:00
David Capello
b1843f8f7a Fix issue 409: Infinite loop upon creating new sprite with a loop section set
Fix app::calculate_next_frame() to check that the loop section is correctly
inside the available sprite frames range [0, nframes)
2014-06-12 23:27:38 -03:00
David Capello
712d48245b Fix crash when Esc key is pressed in drag-and-drop of frames in Timeline 2014-06-12 23:12:15 -03:00
David Capello
6924990992 Simplify slot disconnections with the new Connection and ScopedConnection classes 2014-06-12 22:29:19 -03:00
David Capello
f8eae50e8a Mac OS X: Update create_release.sh script to compile several files in parallel 2014-06-10 00:58:28 -03:00