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
kichikuou
8d91657c14
Do not create agsurface_t in font.c
2020-10-04 16:02:10 +09:00
kichikuou
ebb249cd47
Remove 15bpp surface operations
...
These were used only with X11 backend.
2020-10-04 16:01:48 +09:00
kichikuou
379ca744d5
Remove BGR-order macros
2020-10-04 15:35:51 +09:00
kichikuou
b892189f8b
Fix selection menu painting
...
The new behavior matches System 3.9.
- Use sel.WinFrameColor to draw selection cursor in EncloseType=0
- Implement EncloseType=1 (thick selection cursor)
- It always uses color 255, not WinFrameColor (System 3.9 bug?)
- EncloseType=2 uses MsgFontColor for background, WinBackgroundColor for
text
2020-10-04 09:14:19 +09:00
kichikuou
f1b4c2550b
Simplify font code
2020-10-04 09:14:16 +09:00
kichikuou
79c9bfc85a
Drop ft2 font device
...
This makes sdlttf the only font device, and allows code simplification.
2020-10-03 14:54:48 +09:00
kichikuou
042f333564
Remove graphicsdevice.h
2020-10-01 22:19:58 +09:00
kichikuou
417baec290
Remove ags_sync()
2020-10-01 22:16:50 +09:00
kichikuou
ec270f2378
Remove X11/SDL abstraction macros
2020-10-01 22:10:12 +09:00
kichikuou
55837e5115
Remove xcore graphics backend
...
This removes X11 specific code, making SDL2 a hard dependency.
X-based environments are continue to be supported via SDL2.
This also removes joystick_linux.c which was only used if SDL2 was not
available.
2020-10-01 21:27:59 +09:00
kichikuou
97b8bcb22a
Fix argument for SDL_JoystickEventState
X11
2020-10-01 16:46:20 +09:00
kichikuou
862f639e2e
Fix ShString.FillString
2020-09-21 18:02:32 +09:00
kichikuou
316a06a168
Refactor string variable functions
...
This replaces v_str* functions with new svar_* functions.
The new svar_* functions use 1-based string variable index, so that
callers don't have to decrement string numbers from SCO.
2020-09-21 16:17:23 +09:00
kichikuou
c9ec20dcc8
Remove no field of agsurface_t
2020-09-21 13:24:12 +09:00
kichikuou
023b8cd455
VSP: Do not use static extraction buffer
...
Now it's allocated on the stack. Up to 401*8 bytes, should be fine.
2020-09-21 12:01:20 +09:00
kichikuou
335681863c
VSP: Appropriately scale 4-bit color to 8-bit
...
This fixes a bug where VSP image was displayed slightly darker than the
original.
2020-09-21 11:46:48 +09:00
kichikuou
ecba592d82
TECH.TXT: Typo fixes and minor corrections
2020-09-21 11:03:13 +09:00
kichikuou
dbac18c260
Globally replace "pallet" with "palette"
2020-09-19 22:25:10 +09:00
kichikuou
ed8f610f80
Remove unused xpg_basename.c
2020-09-16 18:36:03 +09:00
kichikuou
f753cf8670
SDL: Show quit confirmation dialog on SDL_QUIT
2020-09-12 18:59:32 +09:00
kichikuou
c3cc4f3e44
menu_sdl.c: Implement menu_msgbox_open()
2020-09-12 18:27:51 +09:00
kichikuou
e57913bfc6
Revive menu_null.c
...
It's used only if graphic backend is X11 and libgtk2 is not available.
2020-09-12 18:18:34 +09:00
kichikuou
f941916fb2
CI: Install libgtk2.0-dev in X11 build
2020-09-12 16:56:41 +09:00
kichikuou
f5248bda8a
Merge sdl_mode.c to sdl_video.c
2020-09-10 15:42:27 +09:00