85 Commits

Author SHA1 Message Date
David Capello
e09cdd67cb Add support to compile with VS2013 x64 2015-03-06 17:01:08 -03:00
David Capello
15b0b86339 Remove extra token after #endif 2015-03-04 19:26:35 -03:00
David Capello
35be72833b Don't redefine ASSERT/TRACE in allegro/debug.h 2015-02-14 22:09:07 -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
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
7a4f4c9c5e Support running multiple instances on OS X (fix #533) 2014-11-30 21:00:27 -03:00
David Capello
2de3f7caff Fix crash when other app prevent us to recreate the primary DirectDraw surface (fix #542) 2014-11-24 20:24:28 -03:00
David Capello
51061894de Fix more OS X cursor issues
Fixed problems with a hidden mouse cursor when we activated Aseprite
window from other windows, or from the Mission Control, or with Cmd+Alt.
2014-11-05 11:14:49 -03:00
David Capello
13fc8e03d2 Fix #392 - Crash when another monitor is plugged in
When we change the number of monitors, we've to restore the primary
DirectDraw surface, but it cannot be just "restored", it must be
re-created.

Note: probably the real fix for #436 too
2014-11-02 18:59:00 -03:00
David Capello
b9b3b02882 Fix mouse issues on OS X (fix #458)
Now we generate she::Event::MouseEnter/Leave events correctly when the
mouse leaves or enters into the window to show the native cursor again
when necessary.

Close #466
2014-11-01 11:36:51 -03:00
David Capello
ee685e419e Win32: Don't process extra mouse buttons messages (related to issue #483) 2014-09-11 00:02:33 -03:00
David Capello
a2107f5bd9 Mac OS X: Avoid Cocoa error beep when a Cmd+key is used
This change should be reverted in some way when the OS X menus
are implemented (issue #135)
2014-08-28 09:50:32 -03:00
David Capello
33d7b305a2 Several changes related to the location of resources
- Add ResourceFinder::includeUserDir() (used by aseprite.ini, crash dump,
  and aseprite.log). These locations depend on App::isPortable() (if the
  app is portable or installed).
- We don't need to change the current directory in
  applicationDidFinishLaunching anymore (ResourceFinder::includeDataDir()
  takes care about bundles now in a correct way).
- Migrate old ~/.asepriterc to ~/.config/aseprite/aseprite.ini
2014-08-24 09:00:35 -03:00
David Capello
8594d7515f Remove application:openFile: declaration for AllegroAppDelegate 2014-08-23 20:40:59 -03:00
David Capello
ab71f13073 Minor changes in qzwindow.m 2014-08-23 14:17:37 -03:00
David Capello
354d945b49 Fix initial crash on Mac OS X version when there isn't .asepriterc file and our desktop resolution is 1024x768
Now, a set_gfx_mode() (in Mac OS X) can accept almost any resolution,
the screen will be created with the NSView bounds anyway (which can be
smaller than the given size in set_gfx_mode()).
2014-08-23 14:17:13 -03:00
David Capello
9135461627 Fix #455 - fix command line processing when the app is in a bundle 2014-08-22 09:36:40 -03:00
David Capello
08d1593481 Avoid warning for unused var in app.mm 2014-08-21 22:06:37 -03:00
David Capello
9398bbc000 Mac OS X: Add support to open files with double-click from Finder 2014-08-18 23:07:53 -03:00
David Capello
155b770acd Avoid crash by ASSERT()
I think this ASSERT crashes the program because they aren't called from
the main thread, but I'm not quite sure.
2014-08-12 08:22:43 -03:00
David Capello
1c324c9b14 Add experimental option to use native mouse cursors (and some renames of cursor names) 2014-08-10 19:51:14 -03:00
David Capello
8cf25c49a7 Win32: Fix bug where the mouse capture isn't released 2014-08-10 00:12:33 -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
15a3b6ac2c Fix double-click issues
- Fix double-click behavior when double-clicks are generated from
  Manager::generateMouseMessages().
- Add Widget::setDoubleClickeable/isDoubleClickeable() member functions
  for widgets that accept double-clicks.
2014-04-26 11:09:59 -03:00
David Capello
47ee01c1a0 Proper handling of HRESULTs 2014-04-20 17:41:49 -03:00
David Capello
f0802ed766 Trace unknown scancodes in allegro/src/keyboard.c 2014-03-16 19:24:49 -03:00
David Capello
15f55c045c wddlock.c: Don't use _al_wd_dirty_lines if it's null
Related to issue 359: Program exits unexpectently after minimizing
and maximizing too fast.

I should find the cause of _al_wd_dirty_lines = NULL, but I wasn't able
to reproduce this bug, so at the moment this is the best I can do to avoid
a crash. (I suppose that it's related to a temporary invalid state because
thread sync issues when the screen/window changes its size.)
2014-03-08 21:34:48 -03:00
David Capello
fc58c24da2 allegro/src/keyboard.c: Avoid accessing out of range items in key/_key arrays 2013-12-29 19:52:21 -03:00
David Capello
c3e583f927 Fix some compilations problems in MinGW
Anyway without DirectX header files (ddraw.h specifically) we cannot
compile Allegro source code with MinGW.
2013-12-22 12:20:53 -03:00
David Capello
8678e3b21b Mac OS X fix: ALLEGRO_HAVE_STDINT_H is already defined in alplatf.h 2013-11-25 10:44:20 -03:00
David Capello
5b252c30f5 Add support for Unicode file names on Windows
- Fixed issue #46: open .png files with Unicode chars
- Fixed issue #150: ability to uncompress program in folders w/Unicode chars
- Added base::utf8_iterator
- Added base::FileHandle
- Added base::get_app_path()
- Modified ui::KeyMessage::ascii() -> unicodeChar()
- Removed JI_NOTEXT flag
- Added app::XmlDocumentRef class and app::open_xml() function
- Added support for Unicode text exchange with Win32 clipboard
2013-10-14 19:58:11 -03:00
David Capello
092ae7b2d6 Fix warning: Remove AL_CONST modifier from free_config_entries() function 2013-09-30 19:57:49 -03:00
David Capello
cde54f3682 Change BSD license to MIT in sublibraries and fix headers 2013-08-08 21:01:20 -03:00
David Capello
9f48723349 Remove unused local variables in load_tga_pf() 2013-03-27 23:10:59 -03:00
David Capello
7a062b61a8 Add support for VC++11 (2012) 2012-10-30 21:08:33 -03:00
David Capello
7f2f965b9c Check if keyboard_driver is installed before using it in _al_win_kbd_update_shifts().
The function _handle_key_press() cannot be used if keyboard_driver is
NULL and this can happen in the creation process of the window if the user
is pressing keys.
2012-08-22 22:34:03 -03:00
David Capello
3698195375 wwnd.c: Do not handle mouse events if the win_gfx_driver is not initialized.
It fix a deadlock when we try to create a window that doesn't fit the
desktop and we have the mouse above that opened window (which could
be pretty common).
2012-08-22 22:21:39 -03:00
David Capello
92f9302c85 wddwin.c: Rename _destroy_directx_forefront_bitmap() to _destroy_directx_forefront_bitmap_extras().
Call the function only one time in gfx_directx_win_exit().
2012-08-22 22:05:19 -03:00
David Capello
b8fbaad7fb Replace Allegro Sprite Editor or ASE with ASEPRITE in all files. 2012-01-06 01:12:57 -03:00
David Capello
ed6090bc36 Convert all newline to LF style and remove all tabs.
This was done to avoid mixed files (CRLF & LF) in the repository.
2012-01-05 19:45:03 -03:00
David Capello
2b95ba58d2 Fix problem losing the mouse capture on Windows platform when the mouse leaves the windows. 2011-07-28 19:32:05 -03:00
David Capello
04c675bd15 Merge branch 'ft-updater' 2011-07-27 22:10:49 -03:00
David Capello
4fac1f119b Remove requirement of ddraw.lib library, so we can compile with the latest DirectX SDK. 2011-07-26 23:42:14 -03:00
David Capello
4e2c4f530d Fix problem where aseprite.ini is not saved when flush_config_file() is called.
+ Flush "config_override" file in flush_config_file().
2011-07-19 21:37:57 -03:00
David Capello
17dea3db8d Modify sys_directx_assert() to call DebugBreak() instead of abort(). 2010-12-12 11:36:50 -03:00
David Capello
06403f3ace Fix problems resizing the window on Windows.
+ Limit the minimum window size to 192x96.
+ Only accept multiples of 16 for width and height.
2010-12-11 21:39:58 -03:00
David Capello
d0a694cbb1 More priority for GUI thread, it is necessary for better GUI response in presence of background threads (this change was removed in commit 21957f21642a98422612bc1b268b20c7377f0eff). 2010-11-06 20:15:11 -03:00