From 2e8eaa34717f99c9696867b62ff5f19e76a7ccf8 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 8 Jul 2018 12:19:30 +1000 Subject: Added type gJustify to replace V2.x justify_t, and values gJustifyXXX replace justifyXXX --- demos/benchmarks/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'demos/benchmarks') 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); } -- cgit v1.2.3