diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 12:19:30 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 12:19:30 +1000 |
commit | 2e8eaa34717f99c9696867b62ff5f19e76a7ccf8 (patch) | |
tree | 5842c0ccaaffd195430b83fd2bd9211bd6f1fffe /demos/modules/gtrans | |
parent | 788cbced624d83a4c493182fde15cfa244910294 (diff) | |
download | uGFX-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/modules/gtrans')
-rw-r--r-- | demos/modules/gtrans/basic/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/modules/gtrans/basic/main.c b/demos/modules/gtrans/basic/main.c index 1a1657cf..283a7211 100644 --- a/demos/modules/gtrans/basic/main.c +++ b/demos/modules/gtrans/basic/main.c @@ -68,14 +68,14 @@ void updateText() gCoord height = 30; // Translate some basic strings - gdispFillStringBox(20, 20, width, height, gt("Welcome"), font, COLOR_TEXT, COLOR_BACKGROUND, justifyLeft); - gdispFillStringBox(20, 60, width, height, gt("This is a translated uGFX application"), font, COLOR_TEXT, COLOR_BACKGROUND, justifyLeft); - gdispFillStringBox(20, 100, width, height, gt("Goodbye"), font, COLOR_TEXT, COLOR_BACKGROUND, justifyLeft); + gdispFillStringBox(20, 20, width, height, gt("Welcome"), font, COLOR_TEXT, COLOR_BACKGROUND, gJustifyLeft); + gdispFillStringBox(20, 60, width, height, gt("This is a translated uGFX application"), font, COLOR_TEXT, COLOR_BACKGROUND, gJustifyLeft); + gdispFillStringBox(20, 100, width, height, gt("Goodbye"), font, COLOR_TEXT, COLOR_BACKGROUND, gJustifyLeft); // A more complex example using string formatting char buffer[128]; sprintf(buffer, gt("The temperature is %d degrees"), 18); - gdispFillStringBox(20, 140, width, height, buffer, font, COLOR_TEXT, COLOR_BACKGROUND, justifyLeft); + gdispFillStringBox(20, 140, width, height, buffer, font, COLOR_TEXT, COLOR_BACKGROUND, gJustifyLeft); } int main(void) |