From 2ab2d77fcba42467b62f2be732cb8dc00510fe19 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 8 Jul 2018 10:54:19 +1000 Subject: Change coord_t to gCoord --- demos/3rdparty/notepad-2/notepadApp.c | 2 +- demos/3rdparty/notepad-2/notepadCore.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'demos/3rdparty/notepad-2') diff --git a/demos/3rdparty/notepad-2/notepadApp.c b/demos/3rdparty/notepad-2/notepadApp.c index 0540da2c..57d2ad20 100644 --- a/demos/3rdparty/notepad-2/notepadApp.c +++ b/demos/3rdparty/notepad-2/notepadApp.c @@ -48,7 +48,7 @@ static GHandle gstatusConsole; // GConsole Handle to the Status Bar static GEventMouse curPtr; // Holder for current pointer location static font_t font; -static coord_t swidth, sheight; +static gCoord swidth, sheight; // The toolbar buttons - Self-Explanatory static GButtonObject btnNew, btnOpen, btnSave; diff --git a/demos/3rdparty/notepad-2/notepadCore.c b/demos/3rdparty/notepad-2/notepadCore.c index 65afc988..2a739e12 100644 --- a/demos/3rdparty/notepad-2/notepadCore.c +++ b/demos/3rdparty/notepad-2/notepadCore.c @@ -55,7 +55,7 @@ static GHandle nStatusConsole = NULL; static volatile gBool doExit; -static void draw_point(coord_t x, coord_t y) { +static void draw_point(gCoord x, gCoord y) { color_t c = ncoreDrawingArea->color; if (nMode == NCORE_MODE_DRAW) @@ -71,7 +71,7 @@ static void draw_point(coord_t x, coord_t y) { /* Bresenham's Line Drawing Algorithm Modified version to draw line of variable thickness */ -static void draw_line(coord_t x0, coord_t y0, coord_t x1, coord_t y1) { +static void draw_line(gCoord x0, gCoord y0, gCoord x1, gCoord y1) { int16_t dy, dx; int16_t addx, addy; int16_t P, diff, i; @@ -130,7 +130,7 @@ static void draw_line(coord_t x0, coord_t y0, coord_t x1, coord_t y1) { static DECLARE_THREAD_FUNCTION(ncoreDrawThread, msg) { GEventMouse ev, evPrev; - coord_t dx, dy; + gCoord dx, dy; int state = 0, dist; -- cgit v1.2.3