aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gwin/textedit
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-03-10 20:36:12 +1000
committerinmarket <andrewh@inmarket.com.au>2018-03-10 20:36:12 +1000
commit94f1cc2f0a4db0c6f1483e6d648068e031bcc094 (patch)
tree97f50372239108ec9e6e75a3d56e808e479cb7be /demos/modules/gwin/textedit
parentf265924396167729e8d9fb36a0383263f36c1270 (diff)
downloaduGFX-94f1cc2f0a4db0c6f1483e6d648068e031bcc094.tar.gz
uGFX-94f1cc2f0a4db0c6f1483e6d648068e031bcc094.tar.bz2
uGFX-94f1cc2f0a4db0c6f1483e6d648068e031bcc094.zip
Change new colors to GFX_RED instead of GFXRED. Use the new color defs
Diffstat (limited to 'demos/modules/gwin/textedit')
-rw-r--r--demos/modules/gwin/textedit/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/modules/gwin/textedit/main.c b/demos/modules/gwin/textedit/main.c
index 4072f983..b3fafcf0 100644
--- a/demos/modules/gwin/textedit/main.c
+++ b/demos/modules/gwin/textedit/main.c
@@ -50,8 +50,8 @@ static void guiCreate(void)
wi.g.width = gdispGetWidth()/2;
wi.g.height = gdispGetHeight();
ghConsole = gwinConsoleCreate(0, &wi.g);
- gwinSetColor(ghConsole, Yellow);
- gwinSetBgColor(ghConsole, Black);
+ gwinSetColor(ghConsole, GFX_YELLOW);
+ gwinSetBgColor(ghConsole, GFX_BLACK);
gwinSetFont(ghConsole, gdispOpenFont("UI2"));
gwinClear(ghConsole);
@@ -102,11 +102,11 @@ int main(void) {
gfxInit();
- gdispClear(Silver);
+ gdispClear(GFX_SILVER);
gwinSetDefaultFont(gdispOpenFont("DejaVuSans16"));
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
- gwinSetDefaultColor(Black);
- gwinSetDefaultBgColor(White);
+ gwinSetDefaultColor(GFX_BLACK);
+ gwinSetDefaultBgColor(GFX_WHITE);
geventListenerInit(&gl);
geventAttachSource(&gl, ginputGetKeyboard(0), GLISTEN_KEYTRANSITIONS|GLISTEN_KEYUP);