aboutsummaryrefslogtreecommitdiffstats
path: root/demos/benchmarks
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 12:19:30 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 12:19:30 +1000
commit2e8eaa34717f99c9696867b62ff5f19e76a7ccf8 (patch)
tree5842c0ccaaffd195430b83fd2bd9211bd6f1fffe /demos/benchmarks
parent788cbced624d83a4c493182fde15cfa244910294 (diff)
downloaduGFX-2e8eaa34717f99c9696867b62ff5f19e76a7ccf8.tar.gz
uGFX-2e8eaa34717f99c9696867b62ff5f19e76a7ccf8.tar.bz2
uGFX-2e8eaa34717f99c9696867b62ff5f19e76a7ccf8.zip
Added type gJustify to replace V2.x justify_t, and values gJustifyXXX replace justifyXXX
Diffstat (limited to 'demos/benchmarks')
-rw-r--r--demos/benchmarks/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/benchmarks/main.c b/demos/benchmarks/main.c
index 17058610..553af7bd 100644
--- a/demos/benchmarks/main.c
+++ b/demos/benchmarks/main.c
@@ -98,10 +98,10 @@ void benchmark(void) {
height = gdispGetHeight();
font = gdispOpenFont("UI2 Double");
- gdispDrawStringBox(0, 0, width, 30, "ChibiOS/GFX - Benchmark", font, GFX_WHITE, justifyCenter);
+ gdispDrawStringBox(0, 0, width, 30, "ChibiOS/GFX - Benchmark", font, GFX_WHITE, gJustifyCenter);
font = gdispOpenFont("UI2");
- gdispDrawStringBox(0, height/2, width, 30, "5000 random rectangles", font, GFX_WHITE, justifyCenter);
+ gdispDrawStringBox(0, height/2, width, 30, "5000 random rectangles", font, GFX_WHITE, gJustifyCenter);
gfxSleepMilliseconds(3000);
@@ -131,8 +131,8 @@ void benchmark(void) {
font = gdispOpenFont("UI2 Double");
gdispClear(GFX_BLACK);
- gdispDrawStringBox(0, 0, width, 30, "ChibiOS/GFX - Benchmark", font, GFX_WHITE, justifyCenter);
- gdispDrawStringBox(0, height/2, width, 30, pps_str, font, GFX_WHITE, justifyCenter);
+ gdispDrawStringBox(0, 0, width, 30, "ChibiOS/GFX - Benchmark", font, GFX_WHITE, gJustifyCenter);
+ gdispDrawStringBox(0, height/2, width, 30, pps_str, font, GFX_WHITE, gJustifyCenter);
//gdispDrawString(20, height/2, pps_str, font, GFX_WHITE);
}