From 9f33efcf21c6dc63187d7d77ff94e438a2733777 Mon Sep 17 00:00:00 2001 From: Andrew Hannam Date: Tue, 7 Aug 2012 07:44:11 +1000 Subject: Compile error fix for GDISP_NEED_MULTITHREAD --- halext/src/gdisp.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'halext/src') diff --git a/halext/src/gdisp.c b/halext/src/gdisp.c index 4bbff695..de3761cd 100644 --- a/halext/src/gdisp.c +++ b/halext/src/gdisp.c @@ -90,24 +90,6 @@ } #endif -#if GDISP_NEED_MULTITHREAD || defined(__DOXYGEN__) - /** - * @brief Set the orientation of the display. - * @pre The GDISP unit must be in powerOn or powerSleep mode. - * @note Depending on the hardware implementation this function may clear - * the display when changing its orientation. - * - * @param[in] newOrientation The new orientation to use - * - * @api - */ - void gdispSetOrientation(gdisp_orientation_t newOrientation) { - MUTEX_ENTER - gdisp_lld_setorientation(newOrientation); - MUTEX_EXIT - } -#endif - #if GDISP_NEED_MULTITHREAD || defined(__DOXYGEN__) /** * @brief Clear the display to the specified color. @@ -688,13 +670,12 @@ */ coord_t gdispGetStringWidth(const char* str, font_t font) { /* No mutex required as we only read static data */ - coord_t w, h, p, x; + coord_t w, p, x; char c; int first; first = 1; x = 0; - h = font->height * font->yscale; p = font->charPadding * font->xscale; while(*str) { /* Get the next printable character */ -- cgit v1.2.3