aboutsummaryrefslogtreecommitdiffstats
path: root/include/gdisp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gdisp.h')
-rw-r--r--include/gdisp.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/gdisp.h b/include/gdisp.h
index 9be97a12..f92ac8ac 100644
--- a/include/gdisp.h
+++ b/include/gdisp.h
@@ -287,18 +287,17 @@ void gdispDrawBox(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color);
void gdispPackPixels(const pixel_t *buf, coord_t cx, coord_t x, coord_t y, color_t color);
#endif
-/* Macro definitions
- *
+void gdispSetBacklight(uint8_t percentage);
+void gdispSetContrast(uint8_t percentage);
+/*
+ * Macro definitions
*/
-
/* Now obsolete functions */
#define gdispBlitArea(x, y, cx, cy, buffer) gdispBlitAreaEx(x, y, cx, cy, 0, 0, cx, buffer)
/* Macro definitions for common gets and sets */
#define gdispSetPowerMode(powerMode) gdispControl(GDISP_CONTROL_POWER, (void *)(unsigned)(powerMode))
#define gdispSetOrientation(newOrientation) gdispControl(GDISP_CONTROL_ORIENTATION, (void *)(unsigned)(newOrientation))
-#define gdispSetBacklight(percent) gdispControl(GDISP_CONTROL_BACKLIGHT, (void *)(unsigned)(percent))
-#define gdispSetContrast(percent) gdispControl(GDISP_CONTROL_CONTRAST, (void *)(unsigned)(percent))
#define gdispGetWidth() ((coord_t)(unsigned)gdispQuery(GDISP_QUERY_WIDTH))
#define gdispGetHeight() ((coord_t)(unsigned)gdispQuery(GDISP_QUERY_HEIGHT))