A few QoL tweaks

This commit is contained in:
Colton Rushton 2021-02-16 11:46:27 -04:00
parent 44f9e94d9f
commit 6e2df5da8e
3 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,8 @@
FROM ubuntu:18.04 as build
RUN apt-get update && \
apt-get install -y \
RUN apt update && \
apt upgrade && \
apt install \
binutils-mips-linux-gnu \
bsdmainutils \
build-essential \

View File

@ -129,7 +129,7 @@ void clear_z_buffer(void) {
gDPSetFillColor(gDisplayListHead++,
GPACK_ZDZ(G_MAXFBZ, 0) << 16 | GPACK_ZDZ(G_MAXFBZ, 0));
gDPFillRectangle(gDisplayListHead++, 0, BORDER_HEIGHT, SCREEN_WIDTH - 1,
gDPFillRectangle(gDisplayListHead++, GFX_DIMENSIONS_RECT_FROM_LEFT_EDGE(0), BORDER_HEIGHT, GFX_DIMENSIONS_RECT_FROM_RIGHT_EDGE(0) - 1,
SCREEN_HEIGHT - 1 - BORDER_HEIGHT);
}

View File

@ -411,7 +411,11 @@ void fatal_printf(const char *fmt, ...) {
gd_printf("%s", va_arg(vl, char *));
break;
case 'c':
#ifndef QOL_FIXES
gd_printf("%c", va_arg(vl, char));
#else
gd_printf("%c", va_arg(vl, int));
#endif
break;
case 'x':
gd_printf("%x", va_arg(vl, s32));