Compare commits

...

6 Commits

Author SHA1 Message Date
mibi88 813af222fd Merge branch 'dev' of https://gitea.planet-casio.com/mibi88/gint into dev 2022-11-20 11:48:37 +01:00
mibi88 984f162cb2 Added gint_set_quit_handler() 2022-11-20 11:48:26 +01:00
mibi88 6426406043 Fix typo 2022-11-20 11:48:26 +01:00
mibi88 2fe67412cc Added SetQuitHandler. 2022-11-20 11:48:26 +01:00
Lephe 8442e0b9cf
render: fix missed clipping test in dtext() 2022-11-19 23:41:47 +01:00
Lephe 5461d54083
ld: do not remove debug sections from ELF files
They are already removed by objcopy when converting to a flat binary
because they don't have the LOAD flag.
2022-11-19 23:05:57 +01:00
4 changed files with 3 additions and 9 deletions

View File

@ -225,10 +225,6 @@ SECTIONS
*/
/DISCARD/ : {
/* Debug sections (often from libgcc) */
*(.debug_info .debug_abbrev .debug_loc .debug_aranges
.debug_ranges .debug_line .debug_str .debug_frame
.debug_loclists .debug_rnglists)
/* Java class registration (why are they even here?!) */
*(.jcr)
/* Asynchronous unwind tables: no C++ exception handling */

View File

@ -176,10 +176,6 @@ SECTIONS
/DISCARD/ : {
/* SH3-only data sections */
*(.gint.data.sh3 .gint.bss.sh3)
/* Debug sections (often from libgcc) */
*(.debug_info .debug_abbrev .debug_loc .debug_aranges
.debug_ranges .debug_line .debug_str .debug_frame
.debug_loclists .debug_rnglists)
/* Java class registration (why are they even here?!) */
*(.jcr)
/* Asynchronous unwind tables: no C++ exception handling */

View File

@ -59,7 +59,6 @@ static void topti_render(int x, int y, char const *str_char, font_t const *f,
/* Vertical clipping */
if(x >= dwindow.right || y >= dwindow.bottom) return;
if(y + height <= dwindow.top) return;
height = min(height, dwindow.bottom - y);
int top_overflow = y - dwindow.top;
if(top_overflow < 0) {
@ -67,6 +66,8 @@ static void topti_render(int x, int y, char const *str_char, font_t const *f,
height += top_overflow;
y -= top_overflow;
}
height = min(height, dwindow.bottom - y);
if(height <= 0) return;
/* Move to top row */
uint16_t *target = gint_vram + DWIDTH * y;

View File

@ -109,6 +109,7 @@ void topti_render(int x, int y, char const *str_char, font_t const *f,
vdisp = dwindow.top - y;
y = dwindow.top;
}
if(vdisp >= height) return;
uint32_t bg_mask[4];
masks(dwindow.left, dwindow.right, bg_mask);