aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-12-19 00:51:47 +0100
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-12-19 00:51:47 +0100
commit185c970da933c07c62e152b0c0d61847e6100769 (patch)
treec45f493fb7906c0097ce5dec504d647b35fcc13e /src
parenta1c81e3449d95d7e1723f4ee9d900c1b3937cfff (diff)
downloaduGFX-185c970da933c07c62e152b0c0d61847e6100769.tar.gz
uGFX-185c970da933c07c62e152b0c0d61847e6100769.tar.bz2
uGFX-185c970da933c07c62e152b0c0d61847e6100769.zip
Compiler warning
Diffstat (limited to 'src')
-rw-r--r--src/gwin/gwin_textedit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gwin/gwin_textedit.c b/src/gwin/gwin_textedit.c
index 2dbe58bc..04c2d6d8 100644
--- a/src/gwin/gwin_textedit.c
+++ b/src/gwin/gwin_textedit.c
@@ -54,6 +54,8 @@ static bool_t resizeText(GWidgetObject* gw, size_t pos, int32_t diff) {
static void TextEditMouseDown(GWidgetObject* gw, coord_t x, coord_t y) {
uint16_t i = 0;
+ (void)y;
+
// Directly jump to the end of the string
if (x > gdispGetStringWidth(gw->text, gw->g.font)) {
gw2obj->cursorPos = strlen(gw->text);