Skip to content

Commit f14f4b5

Browse files
committed
Add new color level
rewrite drawer with SDL_RenderGeometry #1 rewrite event handler add help, version, display, modes
1 parent 3c94174 commit f14f4b5

File tree

3 files changed

+319
-191
lines changed

3 files changed

+319
-191
lines changed

Makefile

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
TARGET = display-test
2-
VERSION = 0.0.1
2+
VERSION = 0.0.2
3+
4+
SDL2 = $(shell pkg-config --cflags --libs sdl2)
35
CFLAGS = -Wall -Wextra -Werror -std=c99
46

5-
DEPS = $(shell pkg-config --cflags --libs sdl2)
7+
all: $(TARGET)
8+
9+
$(TARGET): main.c
10+
cc -o $@ $< $(SDL2) $(CFLAGS) -DVERSION=\"$(VERSION)\"
611

7-
all: main.c
8-
cc -o $(TARGET) $< $(DEPS) $(CFLAGS) -DVERSION=\"$(VERSION)\"
12+
.PHONY: clean, install
913

10-
.PHONY: clean
14+
install:
15+
@echo "Please move $(TARGET) to your PATH **manually**."
1116
clean:
1217
rm -f $(TARGET)

README.md

+9-17
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,24 @@
11
# Display Test
22

3+
> [!WARNING]
4+
> **PHOTOSENSITIVITY/EPILEPSY SEIZURES**
5+
36
Test your display with colors and lines.
47

5-
## TODO
8+
- color pure \* 8
9+
- color level \* 7
10+
- lines \* 2
11+
12+
## Usage
613

7-
- Linux
8-
- Wayland
9-
- X11
10-
- FB
11-
- mouse support
12-
- ~~click~~
13-
- wheel
14-
- ~~CPU cost~~
15-
- more tests
16-
- http://www.lagom.nl/lcd-test/sharpness.php
17-
- https://www.color.org/browsertest.xalter
14+
see `display-test -h`
1815

1916
## Wayland
2017

2118
```
2219
SDL_VIDEODRIVER=wayland ./display-test
2320
```
2421

25-
## Keys
26-
27-
- up/down/left/right/space/escape/q(uit)
28-
- "d" for debug only, no other meaning.
29-
3022
## Scripts for Development
3123

3224
```

0 commit comments

Comments
 (0)