No description
Font loading now decodes RLE-compressed glyphs to hal_surface_t
at load time rather than decoding per-character during rendering.
This simplifies draw_text() implementations across all backends
and enables use of hal_blit() with colorkey for transparency.
Changes:
- hal_font_common.h:
- hal_glyph_t (ydisp/rle_data) replaced with hal_surface_t glyphs[]
- Added glyph_width[] array for per-glyph widths
- Added glyph_to_surface() to decode glyph bitmap at load time
- Added hal_font_draw_char() that uses hal_blit() with colorkey
- Removed hal_font_decode_row() (no longer needed)
- dos13h/hal_video.c:
- Added hal_video_set_cursor_position() and hal_video_show_cursor()
- hal_draw_text() now uses hal_font_draw_char() helper
- Draws 8x8 white cursor when cursor_visible
- allegro4/hal_video.c, dosmodex/hal_video.c, sdl3/hal_video.c:
- Added hal_font_load(), hal_font_destroy(), hal_draw_text()
implementations using new common helpers
- sdl2/hal_video.c:
- hal_draw_text() now uses hal_font_draw_char() helper
- hal_pcx_common.h:
- Added support for uncompressed PCX (encoding == 0)
- Fixed RLE decoder to properly skip padding bytes when
bytes_per_line > width, preventing file position drift
|
||
|---|---|---|
| audio | ||
| debug | ||
| docs | ||
| file | ||
| input | ||
| net | ||
| samples | ||
| script | ||
| timer | ||
| todos | ||
| video | ||
| .gitignore | ||
| Doxyfile | ||
| hal.c | ||
| hal.h | ||
| hal_types.h | ||
| Makefile | ||
| test_mod.c | ||
| test_sdl2_audio.c | ||