kichikuou
c0daba25a5
Implement ShPort.OutputMessageBox
2021-01-24 11:59:40 +09:00
kichikuou
9775c4569d
Implement ShPort.InputListNum
...
This function is used only in hidden contents (map editor of Alice in
Kaeru nyo Land and unit editor of Daiakuji).
This implementation just calls menu_inputnumber(), while the original
ShPort.DLL shows a listbox.
2021-01-24 11:59:39 +09:00
kichikuou
21444ac1c0
NIGHTDLL: Fix a function signature mismatch
2021-01-24 11:59:34 +09:00
kichikuou
d61ce9a18e
SACT/NIGHTDLL: Check nact->is_quit flag in wait loops
2021-01-24 11:43:23 +09:00
kichikuou
04c3e22339
Remove setRect() and setOffset() macros
2021-01-23 23:07:12 +09:00
kichikuou
92f8120e4a
Change the interpretation of color value in drawing commands
...
Before this, color values above 255 were directly used as the pixel
color. After this, its lower 8 bits are used as the palette index. The
new behavior matches System 3.9.
2021-01-23 23:07:12 +09:00
kichikuou
3613358b7b
Fix an endian bug introduced by 4e2d81cf
2021-01-23 23:07:05 +09:00
kichikuou
fc6651642d
sdl_floodFill: Support 16-bit/32-bit color modes
2021-01-23 16:31:13 +09:00
kichikuou
0b15fa3506
Rewrite flood-fill routine
2021-01-23 14:58:36 +09:00
kichikuou
2f8dd2d6a5
Remove unused antialiase.c
2021-01-17 21:57:49 +09:00
kichikuou
4e2d81cf47
Use SDL byte-swapping macros
2021-01-17 21:35:27 +09:00
kichikuou
29c85aad36
emscripten: Remove EXPORTED_FUNCTIONS build option
2021-01-17 14:16:37 +09:00
kichikuou
cd77cbfbf1
Remove ags_regionContains()
2021-01-09 13:43:24 +09:00
kichikuou
e18bb6cb75
Make MyRectangle an alias of SDL_Rect
2021-01-09 13:43:21 +09:00
kichikuou
34e2d60ab4
Refactor s39ain_init()
...
Now strings in S39AIN struct are not copied with strdup(), but just
point inside the buffer where System39.ain is read.
2021-01-03 16:43:59 +09:00
kichikuou
8894dd40fa
Windows: Do not let save dialog change working directory
2021-01-03 15:45:24 +09:00
kichikuou
2529a5b61b
Android: Update SDL2 to 2.0.14
2021-01-01 12:34:37 +09:00
kichikuou
ca41501f6d
Improve rendering of fonts with descenders
...
- ags_drawString() returns a bounding box of the text so that callers
can update the screen appropriately.
- Use total font height (not only ascent) for vertical positioning.
2020-12-31 12:57:17 +09:00
kichikuou
36a0e01dcd
Windows: Add "Save Screenshot" menu command
2020-12-31 10:56:50 +09:00
kichikuou
81906641e1
Disable message wait (teletype effect) when skipping messages
2020-12-29 12:07:40 +09:00
kichikuou
da1c136b39
Move message skip status flags from input.c to msgskip.c
2020-12-29 12:07:37 +09:00
kichikuou
9878f5ca74
Support message skip in System3.9 games without MsgSkip.DLL
2020-12-29 11:27:14 +09:00
kichikuou
6da3dfef55
Add flags that control message skip behavior
2020-12-29 10:10:52 +09:00
kichikuou
be1f048b33
Tweaks for better message skip experience
...
- Any key input detected in skippable wait functions will cancel the
skip mode (regardless of skipModeInterruptable value).
- Space key (right click) in sys_getInputInfo() will no longer cancel
the skip mode.
- Add 30ms wait in sys_hit_any_key() (used by the 'A' command) so that
users can see what's going on while skipping.
- Cancel the skip mode when opening a menu, not when closing it.
2020-12-28 22:45:51 +09:00
kichikuou
6d5831c4e8
emscripten: Support message skip
2020-12-28 22:45:47 +09:00
kichikuou
5ec0c0a7be
mmap: Keep file descriptor open while mapping is alive
...
Emscripten expects that file descriptor used for mmap is not closed
until the map is unmapped -- otherwise it may silently break unrelated
file (https://github.com/emscripten-core/emscripten/issues/4352 ).
2020-12-26 09:20:46 +09:00
kichikuou
4b002c676c
Support skip-seen-messages feature in pre-system3.9 games
...
This adds functionality equivalent to the MsgSkip module, for older
games. It is enabled if "MsgSkip" file is specified in the game resource
file.
Since messages in pre-system3.9 games don't have IDs, it uses a Bloom
filter to test whether a message has been already seen or not.
2020-12-23 14:08:02 +09:00
kichikuou
f0bd336da1
Implement MsgSkip module
...
The format of savefile (msgskip.asd) is compatible with AliceSoft's
MsgSkip.dll; a 4-byte size field followed by a bitmap indexed by message
ID.
2020-12-22 16:35:37 +09:00
kichikuou
704cfda6ef
Windows: Implement wmenuEnableMsgSkip command
2020-12-20 10:17:49 +09:00
kichikuou
c0de87d0d8
Refactoring: Remove sdl_keywait()
2020-12-13 14:54:15 +09:00
kichikuou
3964a1bc27
Simplify joystick code
2020-12-13 14:28:59 +09:00
kichikuou
b765332c27
Enable specifying joystick device
...
Before this, value of joy_device config parameter (-devjoy in command
line) was ignored. After this, this parameter will take an integer value
and will be used as the device_index argument of SDL_JoystickOpen().
This also removes obsolete doc/README.joystick.
2020-12-13 13:27:42 +09:00
kichikuou
9f9805128f
Improve message skip
...
When message skip is enabled while executing sys_keywait(), skip starts
immediately.
2020-12-13 12:29:09 +09:00
kichikuou
ba0d59d5a4
Windows: Add message-skip menu item
2020-12-12 18:09:55 +09:00
kichikuou
d531fa3994
Refactor fullscreen code
2020-12-12 16:21:10 +09:00
kichikuou
4d5fd5efca
Windows: Add menubar
2020-12-12 16:20:53 +09:00
kichikuou
89a4ba2bd2
Update emscripten to 2.0.7
2020-10-24 14:45:42 +09:00
kichikuou
163c23af81
emscripten: Add SDL_Delay() to ASYNCIFY_REMOVE
...
This is safe because we use SDL_HINT_EMSCRIPTEN_ASYNCIFY = 0. This
significantly reduces the number of Asyncified functions and reduces the
wasm code size by 80kb.
2020-10-24 14:42:06 +09:00
kichikuou
48d937a0c3
Android: Version 0.2.3
android-0.2.3
2020-10-18 14:56:32 +09:00
kichikuou
4aff7a1df7
Android: Fix StringIndexOutOfBoundsException in text input dialog
2020-10-18 14:56:32 +09:00
kichikuou
303510e5c0
Windows: Implement text input dialog
2020-10-11 23:02:55 +09:00
kichikuou
c7263a3082
CMake: Add -Wall for debug builds
2020-10-11 21:31:32 +09:00
kichikuou
aea53c1079
Clean up GTK menu code
2020-10-11 21:31:25 +09:00
kichikuou
32f1e1ef8a
CI: Address deprecation of add-path and set-env
2020-10-11 17:37:07 +09:00
kichikuou
500fffaee2
Refactor hankaku.c
2020-10-11 15:07:43 +09:00
kichikuou
ebe3762809
Remove SDL_AllocSurface macro
...
It was for transition from SDL1.
2020-10-04 16:02:10 +09:00
kichikuou
4fd00a9088
CMake: Build modules as a single library
2020-10-04 16:02:10 +09:00
kichikuou
44d0ddcec7
Use SDL renderer to draw lines
2020-10-04 16:02:10 +09:00
kichikuou
9541f3f85a
Make image_Mosaic operate on SDL_Surface
2020-10-04 16:02:10 +09:00
kichikuou
b5c8b158c6
Make image_fade{In,Out} operate on SDL_Surface instead of agsurface_t
2020-10-04 16:02:10 +09:00