diff options
author | pk33 <pk33@pk33.space> | 2024-11-02 08:49:22 +0100 |
---|---|---|
committer | pk33 <pk33@pk33.space> | 2024-11-02 08:49:22 +0100 |
commit | dd5240ff7a87e85bca15b294236220ac0576055f (patch) | |
tree | 81c69e803bbfe8e8a8ba1e14f6c83bad1934f3b3 | |
parent | 965ab9d57300ab1b9101e2522256a4c32d90bb50 (diff) | |
download | engine33-dd5240ff7a87e85bca15b294236220ac0576055f.tar.gz |
touchup
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | README.html | 3 | ||||
-rw-r--r-- | makefile | 1 | ||||
-rw-r--r-- | src/display.c | 2 |
4 files changed, 5 insertions, 3 deletions
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 @@ <p>WIP game engine in C.</p> <hr><hr> +<br><br><br> <h3>COMPILING</h3> <hr> @@ -10,7 +11,7 @@ <h3>USAGE</h3> <hr> -<p>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.</p> +<p>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.</p> <br><br> <h3>BUGS</h3> @@ -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; } |