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
David Capello
90708c595e
Remove unused local variable in init_directx_window().
2010-11-04 21:55:47 -03:00
David Capello
befd6a3766
Return 0 when WM_MOUSEMOVE is processed.
2010-11-04 21:55:02 -03:00
David Capello
8abc967397
Use CreateThread instead of _beginthread() to create the wnd_thread_proc.
2010-11-04 21:52:35 -03:00
David Capello
9001ce9877
Change Win32 window class name to "ASEWindowClass".
2010-11-04 21:51:34 -03:00
David Capello
21957f2164
Remove related stuff for non-background switch mode (in Allegro source code for Win32).
2010-11-04 21:51:09 -03:00
David Capello
0139524c15
Keep only DirectX Windowed driver (no fullscreen and no GDI).
2010-11-04 21:43:36 -03:00
David Capello
24c2bf40e3
Add asserts to _al_win_kbd_handle* functions().
2010-11-01 21:05:54 -03:00
David Capello
e55b757aad
Fix windows keyboard handling when ToUnicode fails.
...
Introduced in the cumbersome commit 27ba60479762c2582868bd41a135b00cb18bc2e7.
2010-11-01 21:04:50 -03:00
David Capello
b1299d7576
Remove Allegro customization functions for HWND in Windows port.
2010-10-31 22:08:06 -03:00
David Capello
7768f2c45c
Fix memory leaks (old "screen" bitmap) when resizing the window.
2010-10-31 21:32:06 -03:00
David Capello
60cb43d18c
Add information about patches for resize support in Allegro source code.
2010-10-31 16:16:14 -03:00
David Capello
51c04f9d8c
Add resize support to Mac OS X port.
2010-10-31 17:05:11 -02:00
David Capello
edd0e62241
Move "-arch i386" flag for Apple port in main CMakeLists.txt file.
2010-10-31 12:54:23 -02:00
David Capello
920f6275d5
Add resize support for X11 port.
2010-10-30 20:30:47 -07:00
David Capello
9562e3e714
Add resize support to Allegro library (Windows port is ready).
...
+ Add acknowledge_resize() function.
+ Add set_resize_callback() function and RESIZE_DISPLAY_EVENT structure.
2010-10-30 20:37:31 -03:00
David Capello
579d652f07
Use _keyboard_installed and _mouse_installed flags to trigger keyboard and mouse events in directx_wnd_proc().
2010-10-30 19:44:39 -03:00
David Capello
27ba604797
Fix call to ToUnicode() in _al_win_kbd_handle_key_press().
...
This bug was introduced in commit f09318ffa7010dbc9800882cef16539f370382b6.
2010-10-29 11:19:03 -03:00
David Capello
f09318ffa7
Do not update key_shifts flags anymore in Windows.
...
Update modifiers in key[] array using GetAsyncKeyState() instead of GetKeyboardState().
2010-10-20 00:12:32 -03:00
David Capello
e1bfbc4f3c
Move _al_win_* functs to aintwin.h.
2010-10-20 00:09:12 -03:00
David Capello
3de0da7f93
Move PAINTSTRUCT to WM_PAINT only.
2010-10-20 00:08:07 -03:00
David Capello
9e4972fc53
Remove dependency with DirectInput and delete winput.c file.
2010-10-17 23:43:08 -03:00
David Capello
a877d52048
Modify Allegro to use WM_KEYUP/DOWN messages instead of DirectInput.
2010-10-17 21:55:31 -03:00
David Capello
57b54ad050
Modify Allegro to use WM_MOUSEMOVE instead of DirectInput in the Windows mouse driver.
2010-10-17 20:04:26 -03:00
David Capello
f9aa176c09
Remove sound/digi/midi/sample related stuff from Allegro code.
2010-10-17 11:10:18 -07:00
David Capello
1b4ce4cf9b
Remove src/allegro/src/linux code.
2010-10-17 10:35:39 -07:00
David Capello
31eb7f3348
Remove unused files from src/allegro/misc/.
2010-10-17 14:19:01 -03:00
David Capello
7d5e78ea94
Remove ASM code from Allegro source.
2010-10-17 14:12:18 -03:00
David Capello
13bb881151
Remove joystick stuff from Allegro source code.
2010-10-16 23:16:55 -03:00
David Capello
0d4c1dbf9c
Remove Allegro GUI related stuff.
2010-10-16 22:48:45 -03:00
David Capello
6aac8ef51d
Remove PSP specific lines in Common.cmake.
2010-10-16 21:48:52 -03:00
David Capello
71cc031741
Remove DOS/BeOS/djgpp/QNX/BCC32/Watcom/DMC/PSP stuff from Allegro source code.
2010-10-16 21:42:50 -03:00
David Capello
3b983ca2a6
Remove fixes for rc compiler in MinGW.
2010-10-16 20:45:41 -03:00
David Capello
87d2d5595f
Move link flags and other cmake configuration from Allegro's CMakeLists.txt to the main CMakeLists.txt.
...
Remove all the "modules" stuff from Allegro's CMakeLists.txt
2010-10-16 17:02:12 -03:00