diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-07-01 17:34:13 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-07-01 17:34:13 +1000 |
commit | 57d3632e36fe2ab55589207a84c29544b15bd2c3 (patch) | |
tree | e68070f37cf88b33fb5d717d9ef839c5e2e8dc88 /src/gwin/gwin.c | |
parent | a51ffd5b6891a9fb87ac3a903ae6b415fc32c726 (diff) | |
download | uGFX-57d3632e36fe2ab55589207a84c29544b15bd2c3.tar.gz uGFX-57d3632e36fe2ab55589207a84c29544b15bd2c3.tar.bz2 uGFX-57d3632e36fe2ab55589207a84c29544b15bd2c3.zip |
GWIN Init structures are const (read-only to GWIN)
Diffstat (limited to 'src/gwin/gwin.c')
-rw-r--r-- | src/gwin/gwin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index 110d35cc..c1122b3f 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -52,7 +52,7 @@ static color_t defaultBgColor = Black; } else gwinClear(gh); } - static void _gwm_redim(GHandle gh, GWindowInit *pInit) { + static void _gwm_redim(GHandle gh, const GWindowInit *pInit) { gh->x = pInit->x; gh->y = pInit->y; gh->width = pInit->width; gh->height = pInit->height; if (gh->x < 0) { gh->width += gh->x; gh->x = 0; } @@ -85,7 +85,7 @@ void _gwinInit(void) { // Internal routine for use by GWIN components only // Initialise a window creating it dynamically if required. -GHandle _gwindowCreate(GWindowObject *pgw, GWindowInit *pInit, const gwinVMT *vmt, uint16_t flags) { +GHandle _gwindowCreate(GWindowObject *pgw, const GWindowInit *pInit, const gwinVMT *vmt, uint16_t flags) { // Allocate the structure if necessary if (!pgw) { if (!(pgw = (GWindowObject *)gfxAlloc(vmt->size))) @@ -149,7 +149,7 @@ void gwinSetDefaultBgColor(color_t bgclr) { * The GWindow Routines *-----------------------------------------------*/ -GHandle gwinCreateWindow(GWindowObject *pgw, GWindowInit *pInit) { +GHandle gwinCreateWindow(GWindowObject *pgw, const GWindowInit *pInit) { if (!(pgw = _gwindowCreate(pgw, pInit, &basegwinVMT, 0))) return 0; gwinSetVisible(pgw, pInit->show); |