forked from Lephenixnoir/gint
Compare commits
6 Commits
f807b528bb
...
813af222fd
Author | SHA1 | Date |
---|---|---|
mibi88 | 813af222fd | |
mibi88 | 984f162cb2 | |
mibi88 | 6426406043 | |
mibi88 | 2fe67412cc | |
Lephe | 8442e0b9cf | |
Lephe | 5461d54083 |
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue