kichikuou
86068b0ab9
Prefer single precision float
2024-09-01 08:25:34 +09:00
kichikuou
de4f3ebb0d
sdl_effect: Implement EFFECT_RASTER_BLEND (CD 5)
...
Used in Mugen Houyou's title logo.
2024-08-31 22:00:07 +09:00
kichikuou
187a3ced35
Separate ags_eSpriteCopyArea() from ags_eCopyArea()
2024-08-31 16:10:42 +09:00
kichikuou
47e2fcaec0
Add enable_zb option for enabling ZB command
...
By default it is disabled and normal weight is always used.
Issue: https://github.com/kichikuou/xsystem35-sdl2/issues/44
2024-01-18 08:27:46 +09:00
kichikuou
183ceb614a
Implement ZB command
...
Although undocumented, it also affects the font weight of selection
window.
Issue: https://github.com/kichikuou/xsystem35-sdl2/issues/44
2024-01-17 14:32:32 +09:00
kichikuou
c0dbae8202
Refactor palette data structure
2024-01-01 11:47:11 +09:00
kichikuou
a4c1dd1acf
Remove unused MOUSE_WARP_DIRECT mode
2023-09-04 17:14:17 +09:00
kichikuou
f0ccfee40f
Update internal mouse coordinates even if cursor movement is disabled
...
In TT2, keyboard/gamepad navigation is implemented by moving the mouse
cursor using IZ command. It did not work in browsers where mouse cursor
could not be moved or when mouse movement was disabled from the menu.
Now IZ command updates the internal mouse coordinates even when the
cursor cannot be moved.
2023-09-04 13:32:00 +09:00
kichikuou
61ad4282e6
Refactor agsevent_t struct
2023-05-04 11:51:21 +09:00
kichikuou
5ef949ae14
Refactor ags_setWindowTitle()
2023-02-11 21:40:14 +09:00
kichikuou
83fa5db82c
Windows: Add a menu command to control automatic mouse movement
2022-12-29 21:57:53 +09:00
kichikuou
29a139c8a1
Use the standard integer types
...
This replaces BYTE, WORD and DWORD types with uint8_t, uint16_t and
uint32_t respectively.
2022-10-29 09:34:21 +09:00
kichikuou
cee18a572e
Implement palette shift effect (CD 1001)
...
Used in Toushin Toshi 2.
2022-07-31 12:44:30 +09:00
kichikuou
f9b5fec03d
Implement mouse wheel input
...
This implements iptGetWheelCount and iptClearWheelCount commands, and
wheel events for SACT backlog.
2022-07-02 10:55:40 +09:00
kichikuou
b15690d9b7
Windows: Add "Restart" menu command
...
It resets all VM states and restart the game.
2022-06-26 17:25:39 +09:00
kichikuou
6184e93965
Refactoring: Explicitly pass color-key / blending params to ags_drawCg
2022-04-02 22:13:25 +09:00
kichikuou
d243358b48
Use SDL_GetSurfaceColorMod to display CG with custom brightness
2022-04-02 22:13:25 +09:00
kichikuou
9e82445ace
Refactoring: Add depth field to struct cgdata
2022-04-02 22:13:25 +09:00
kichikuou
a6109b6210
Do not convert to 16bpp when decoding JPEG
2022-04-02 22:13:25 +09:00
kichikuou
76db37756b
Rename -devvideo option to -renderer
...
And use SDL_HINT_RENDER_DRIVER under the hood.
2022-02-15 17:57:18 +09:00
kichikuou
4c022cf505
Add -devvideo option which specifies SDL rendering driver name
2022-02-15 14:55:18 +09:00
kichikuou
63c456329f
Remove (unused) MMX support
2022-02-05 22:08:26 +09:00
kichikuou
45612feb79
Move some fields from nact to ags
2022-02-05 15:41:52 +09:00
kichikuou
933cf5b6a3
Remove old ags_fader()
...
And rename ags_fade2() to ags_runEffect().
2022-01-31 21:44:29 +09:00
kichikuou
c15e7233b4
sdl_effect: Implement CE 43 (NACT_EFFECT_MAGNIFY)
2022-01-31 17:13:22 +09:00
kichikuou
debabaf686
Remove ags_copyArea_whiteLevel()
2022-01-16 22:35:49 +09:00
kichikuou
9ea1a81cc1
Allow more than 256 steps in sdl_fader
...
Now sdl_fader_step() takes a real number between 0 and 1.
2022-01-15 16:53:32 +09:00
kichikuou
1405c8693b
Do not use bool as variable name
2021-11-13 07:43:58 +09:00
kichikuou
0b15fa3506
Rewrite flood-fill routine
2021-01-23 14:58:36 +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
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
d531fa3994
Refactor fullscreen code
2020-12-12 16:21: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
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
417baec290
Remove ags_sync()
2020-10-01 22:16:50 +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
c9ec20dcc8
Remove no field of agsurface_t
2020-09-21 13:24:12 +09:00
kichikuou
dbac18c260
Globally replace "pallet" with "palette"
2020-09-19 22:25:10 +09:00
kichikuou
15fb122148
Remove agsurface.has_{pixel,alpha} fields
2020-08-30 10:26:55 +09:00
kichikuou
652e4b9111
Simplify ags_drawStringToSurface()
2020-08-08 22:57:22 +09:00
kichikuou
3cecc58607
Narrow dependency on font.h
...
This removes font.h dependency from header files such as ags.h and
nact.h. After this, font.h must be explicitly included in order to use
font functions.
2020-08-08 22:52:47 +09:00
kichikuou
e830190537
Add ags_drawStringToSurface()
2020-08-08 21:28:01 +09:00
kichikuou
1cf197513c
Use const strings in message related functions
2020-06-20 10:53:38 +09:00
kichikuou
a217df39b1
Fix compiler warnings on Windows
...
On Windows, jpeglib.h includes windows.h which defines several macros
that conflict with ours.
2020-06-14 14:23:40 +09:00
kichikuou
641f53e5bb
Change return type of font->get_glyph
2019-09-15 16:32:02 +09:00