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
kichikuou
988a072964
Rename menu_null.c to menu_sdl.c
2020-09-10 15:25:02 +09:00
kichikuou
775b34cf1a
SDL: Implement inline text input (for MJ command)
...
Very few games use it (Mamorigami-sama and Les Chairs Cruelles), but
this could be reused when we add a pure SDL implementation of input
dialogs.
2020-09-07 22:33:31 +09:00
kichikuou
5455bce8d6
Rename sdl_input.c to sdl_keytable.h
...
And move xsyskey.pl to tools/.
2020-09-06 13:58:09 +09:00
kichikuou
5e5defb6bc
Android: Input dialog truncates string that exceeds maximum length
2020-09-06 10:35:35 +09:00
kichikuou
05cca544c6
Text input commands should accept half-width characters
...
Although its dialog message says "Half-width characters cannot be used",
System3.9 does not prevent users from entering half-width characters.
2020-09-05 22:40:23 +09:00
kichikuou
38758569bb
Android: Implement input dialogs
2020-09-04 17:03:01 +09:00
kichikuou
e417811a94
emscripten: Implement messagebox and number input dialog
2020-09-04 17:03:01 +09:00
kichikuou
b509be2b64
Remove unused menu_widget_reinit()
2020-09-04 11:34:24 +09:00
kichikuou
fa845a6439
MIDI: Keep track of current music number in music_midi.c
2020-08-30 17:21:03 +09:00
kichikuou
b3cb185a35
Simplify cg_load
...
Before this, cg_load() skipped loading CG or loaded only palettes,
depending on the flags set by the PC command.
After this, it always loads a CG and populates the cache. Functions for
loading only palettes have been removed. Actually this may be good for
performance, because some games use `PC 0:` to prewarm the cache.
2020-08-30 15:39:42 +09:00
kichikuou
87413d54dc
Fix SC command
...
This fixes a bug where SC command did not return 999/999/999/999 when
CD-DA is not available.
2020-08-30 13:55:20 +09:00
kichikuou
440fb93b08
Fix memory leak in sprite_update.c
2020-08-30 12:17:46 +09:00
kichikuou
6d1ef1ba6f
Fix memory leak in cursor_load
2020-08-30 11:20:29 +09:00
kichikuou
dd1f0fd230
Fix memory leak in ags_setWorldSize
...
SetWorldSize() replaces the DIB, so alpha buffer must be freed before
calling it.
2020-08-30 10:33:45 +09:00
kichikuou
15fb122148
Remove agsurface.has_{pixel,alpha} fields
2020-08-30 10:26:55 +09:00
kichikuou
91a6cf7e67
Fix out-of-bounds memory access in font_ttf_get_glyph
...
FT_GlyphSlot.bitmap_left can be negative.
2020-08-30 09:58:09 +09:00
kichikuou
dc8025469a
Fix memory leak in msg_openWindow
2020-08-29 22:36:59 +09:00
kichikuou
0bbace898d
Fix memory leak in save_saveAll
2020-08-29 22:04:34 +09:00
kichikuou
c4e5ef3c36
Fix usage message
2020-08-29 19:10:55 +09:00
kichikuou
e039fb3193
Fix memory leak in qnt_extract
2020-08-29 18:47:21 +09:00
kichikuou
e547c153fc
emscripten: Call sys_getInputInfo() at least once per frame
...
This fixes Graymerca, which checks input only with IG command.
2020-08-29 12:38:01 +09:00
kichikuou
fef74da3dd
emscripten: Enable JPEG
2020-08-26 20:23:56 +09:00
kichikuou
7baab6b616
Android CI: Use the system's default JDK
2020-08-23 14:09:37 +09:00
kichikuou
54b219e435
Android: Update build instructions to use commandline-tools
...
Now it works with JDK 9+.
2020-08-23 13:23:21 +09:00
kichikuou
a20363b901
Android: Upgrade build environment
...
- targetSdkVersion 28
- Android Gradle plugin 4.0.1
- Kotlin 1.3.72
- Gradle 6.1.1
2020-08-23 11:22:05 +09:00
kichikuou
bc9fc924ed
[experimental] Unicode mode
...
This adds "Unicode mode", in which scenarios can be written in any
language. xsys35c 1.2.0 and later can produce Unicode scenarios.
- nact->encoding represents the current scenario encoding. The initial
value is SJIS, and ZU command changes it to UTF8.
- Use conversion macros that switch the behavior by the scenario
encoding. For example, toUTF8() calls sjis2utf() if the scenario
encoding is SJIS, and calls strdup() if it is UTF8.
- Fix various string processing functions to work with UTF8.
win-20200809
2020-08-09 21:24:56 +09:00
kichikuou
d8fbf9a8b1
Cleanup
2020-08-09 13:41:26 +09:00