aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpk33 <pk33@pk33.space>2024-11-02 08:49:22 +0100
committerpk33 <pk33@pk33.space>2024-11-02 08:49:22 +0100
commitdd5240ff7a87e85bca15b294236220ac0576055f (patch)
tree81c69e803bbfe8e8a8ba1e14f6c83bad1934f3b3
parent965ab9d57300ab1b9101e2522256a4c32d90bb50 (diff)
downloadengine33-dd5240ff7a87e85bca15b294236220ac0576055f.tar.gz
touchup
-rw-r--r--.gitignore2
-rw-r--r--README.html3
-rw-r--r--makefile1
-rw-r--r--src/display.c2
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>
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;
}