From dd5240ff7a87e85bca15b294236220ac0576055f Mon Sep 17 00:00:00 2001 From: pk33 Date: Sat, 2 Nov 2024 08:49:22 +0100 Subject: touchup --- .gitignore | 2 ++ README.html | 3 ++- makefile | 1 - src/display.c | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9209924 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +bin/*.o +bin/engine33 diff --git a/README.html b/README.html index 8665c4b..5758e47 100644 --- a/README.html +++ b/README.html @@ -2,6 +2,7 @@

WIP game engine in C.



+


COMPILING


@@ -10,7 +11,7 @@

USAGE


-

run ./bin/engine33 on a TTY with a display connected to an integrated graphics connector. Can you find the green pixel on your screen? Well done.

+

run ./bin/engine33 on a TTY with a display connected to the integrated graphics. Can you find the green pixel on your screen? Well done.



BUGS

diff --git a/makefile b/makefile index 65dd0ed..ba4220d 100644 --- a/makefile +++ b/makefile @@ -11,7 +11,6 @@ INCS = -I./include -I./include/musl -I./include/libdrm LIBS = -L./lib/musl -L./lib/libdrm CFLAGS = -O2 -march=native -mtune=native -std=c99 -static -w -Wall -Werror -Wextra -Wshadow -Wpedantic -D_XOPEN_SOURCE=700 -#stops soypilers complaining about signals .MAKE.JOBS = 1C diff --git a/src/display.c b/src/display.c index 69c7bb2..901a570 100644 --- a/src/display.c +++ b/src/display.c @@ -420,7 +420,7 @@ static Size _get_drm_resources( Size fd ) drmData.drmRes.encoder_id_ptr = (__u64)drmData.drmRes_encs; /* Second call writes drm resource data using the given pointers */ - if( ioctl( fd, (int)DRM_IOCTL_MODE_GETRESOURCES, &drmData.drmRes ) == -1 ) { + if( e33_ioctl( fd, (int)DRM_IOCTL_MODE_GETRESOURCES, &drmData.drmRes ) == -1 ) { logw( "Failed to get drm resources" ); return E33_EXIT_FAILURE; } -- cgit v1.2.3