Add compatibility with Visual Studio and make compile warning capabilities more cross platform
This commit is contained in:
parent
e5497f2ac0
commit
9b73187100
@ -69,7 +69,11 @@ static GFXINLINE void init_board(GDisplay *g) {
|
||||
dmaStreamSetMemory0(GDISP_DMA_STREAM, &GDISP_RAM);
|
||||
dmaStreamSetMode(GDISP_DMA_STREAM, STM32_DMA_CR_PL(0) | STM32_DMA_CR_PSIZE_HWORD | STM32_DMA_CR_MSIZE_HWORD | STM32_DMA_CR_DIR_M2M);
|
||||
#else
|
||||
#warning "GDISP: SSD1289 - DMA is supported for F2/F4 Devices. Define GDISP_USE_DMA in your gfxconf.h to turn this on for better performance."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: SSD1289 - DMA is supported for F2/F4 Devices. Define GDISP_USE_DMA in your gfxconf.h to turn this on for better performance."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: SSD1289 - DMA is supported for F2/F4 Devices. Define GDISP_USE_DMA in your gfxconf.h to turn this on for better performance.")
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#error "GDISP: SSD1289 - FSMC not implemented for this device"
|
||||
|
@ -69,7 +69,11 @@ static GFXINLINE void init_board(GDisplay *g) {
|
||||
dmaStreamSetMemory0(GDISP_DMA_STREAM, &GDISP_RAM);
|
||||
dmaStreamSetMode(GDISP_DMA_STREAM, STM32_DMA_CR_PL(0) | STM32_DMA_CR_PSIZE_HWORD | STM32_DMA_CR_MSIZE_HWORD | STM32_DMA_CR_DIR_M2M);
|
||||
#else
|
||||
#warning "GDISP: SSD1289 - DMA is supported for F2/F4 Devices. Define GDISP_USE_DMA in your gfxconf.h to turn this on for better performance."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: SSD1289 - DMA is supported for F2/F4 Devices. Define GDISP_USE_DMA in your gfxconf.h to turn this on for better performance."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: SSD1289 - DMA is supported for F2/F4 Devices. Define GDISP_USE_DMA in your gfxconf.h to turn this on for better performance.")
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#error "GDISP: SSD1289 - FSMC not implemented for this device"
|
||||
|
@ -69,7 +69,11 @@ static GFXINLINE void init_board(GDisplay *g) {
|
||||
dmaStreamSetMemory0(GDISP_DMA_STREAM, &GDISP_RAM);
|
||||
dmaStreamSetMode(GDISP_DMA_STREAM, STM32_DMA_CR_PL(0) | STM32_DMA_CR_PSIZE_HWORD | STM32_DMA_CR_MSIZE_HWORD | STM32_DMA_CR_DIR_M2M);
|
||||
#else
|
||||
#warning "GDISP: SSD1289 - DMA is supported for F2/F4 Devices. Define GDISP_USE_DMA in your gfxconf.h to turn this on for better performance."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: SSD1289 - DMA is supported for F2/F4 Devices. Define GDISP_USE_DMA in your gfxconf.h to turn this on for better performance."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: SSD1289 - DMA is supported for F2/F4 Devices. Define GDISP_USE_DMA in your gfxconf.h to turn this on for better performance.")
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#error "GDISP: SSD1289 - FSMC not implemented for this device"
|
||||
|
@ -10,9 +10,15 @@
|
||||
// Instead we use the Win32 API directly as that always works.
|
||||
#define DEBUGWRITE(str) WriteFile(GetStdHandle(STD_ERROR_HANDLE), str, strlen(str), &nres, 0)
|
||||
#else
|
||||
#warning "You must alter this demo to define a DEBUGWRITE macro for your platform."
|
||||
#warning "Be careful of using C library functions as they sometimes crash if they are not expecting stack changes (if possible use a multi-thread aware C library)"
|
||||
#warning "You might flash LED's instead if that is better for your platform."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "You must alter this demo to define a DEBUGWRITE macro for your platform."
|
||||
#warning "Be careful of using C library functions as they sometimes crash if they are not expecting stack changes (if possible use a multi-thread aware C library)"
|
||||
#warning "You might flash LED's instead if that is better for your platform."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("You must alter this demo to define a DEBUGWRITE macro for your platform.")
|
||||
COMPILER_WARNING("Be careful of using C library functions as they sometimes crash if they are not expecting stack changes (if possible use a multi-thread aware C library)")
|
||||
COMPILER_WARNING("You might flash LED's instead if that is better for your platform.")
|
||||
#endif
|
||||
#error "--"
|
||||
#endif
|
||||
|
||||
|
@ -97,7 +97,11 @@
|
||||
|
||||
// Mutex protection is required for LWIP
|
||||
#if !GDISP_GFXNET_UNSAFE_SOCKETS
|
||||
#warning "GDISP: uGFXnet - LWIP sockets are not thread-safe. GDISP_GFXNET_UNSAFE_SOCKETS has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: uGFXnet - LWIP sockets are not thread-safe. GDISP_GFXNET_UNSAFE_SOCKETS has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: uGFXnet - LWIP sockets are not thread-safe. GDISP_GFXNET_UNSAFE_SOCKETS has been turned on for you.")
|
||||
#endif
|
||||
#undef GDISP_GFXNET_UNSAFE_SOCKETS
|
||||
#define GDISP_GFXNET_UNSAFE_SOCKETS TRUE
|
||||
#endif
|
||||
|
@ -7,13 +7,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_ILI9225
|
||||
|
@ -10,13 +10,14 @@
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
/* This controller is only ever used with a 240 x 320 display */
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_ILI9320
|
||||
|
@ -10,13 +10,14 @@
|
||||
#if GFX_USE_GDISP /*|| defined(__DOXYGEN__)*/
|
||||
|
||||
/* This controller is only ever used with a 240 x 320 display */
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_ILI9325
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_ILI9341
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_ILI9342
|
||||
|
@ -10,13 +10,14 @@
|
||||
#if GFX_USE_GDISP /*|| defined(__DOXYGEN__)*/
|
||||
|
||||
/* This controller is only ever used with a 240 x 320 display */
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_ILI93xx
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_ILI9481
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_ILI9488
|
||||
|
@ -10,13 +10,14 @@
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
/* This controller is only ever used with a 240 x 320 display */
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_LGDP4532
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_Nokia6610GE12
|
||||
|
@ -41,13 +41,14 @@
|
||||
* orientation support and the streaming operations will be emulated (as described above).
|
||||
*/
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_Nokia6610GE8
|
||||
|
@ -10,13 +10,14 @@
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
/* This controller is only ever used with a 240 x 320 display */
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_R61505U
|
||||
|
@ -31,14 +31,16 @@
|
||||
/*===========================================================================*/
|
||||
/* Driver local definitions. */
|
||||
/*===========================================================================*/
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#include "board_RA6963.h"
|
||||
|
||||
// RA6963 Commands
|
||||
@ -213,7 +215,11 @@ static void set_viewport(GDisplay *g) {
|
||||
return; // 0 + ( x / 8 ) + ( y * 16 )
|
||||
//uint16_t addr = (RA6963_GRAPHIC_HOME + ((g->p.x) / RA6963_FONT_WIDTH) + ((g->p.y) * RA6963_GRAPHIC_AREA));
|
||||
uint16_t addr = (RA6963_GRAPHIC_HOME + ((g->p.x >> 3) + (g->p.y << 4)));
|
||||
#warning "check function set_viewport about the shift operations if you change the resolution!"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "check function set_viewport about the shift operations if you change the resolution!"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("check function set_viewport about the shift operations if you change the resolution!")
|
||||
#endif
|
||||
write_data(g, (uint8_t)addr);
|
||||
write_data(g, (uint8_t)(addr>>8));
|
||||
write_cmd(g, RA6963_SET_ADDRESS_POINTER);
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_S6D1121
|
||||
|
@ -15,13 +15,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#include "gdisp_lld_config.h"
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_SSD1331
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_SSD1351
|
||||
|
@ -7,13 +7,14 @@
|
||||
|
||||
#if GFX_USE_GDISP
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#define GDISP_DRIVER_VMT GDISPVMT_ST7735
|
||||
|
@ -13,13 +13,14 @@
|
||||
#include "gdisp_lld_config.h"
|
||||
#include "../../../src/gdisp/gdisp_driver.h"
|
||||
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#undef GISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#ifndef LTDC_USE_DMA2D
|
||||
|
@ -15,21 +15,18 @@
|
||||
#include "UC8173.h"
|
||||
#include "board_UC8173.h"
|
||||
|
||||
#if defined(GDISP_SCREEN_WIDTH)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#define GDISP_SCREEN_WIDTH 240
|
||||
#endif
|
||||
#if defined(GDISP_SCREEN_HEIGHT)
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#define GDISP_SCREEN_HEIGHT 240
|
||||
#if defined(GDISP_SCREEN_HEIGHT) || defined(GDISP_SCREEN_HEIGHT)
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: This low level driver does not support setting a screen size. It is being ignored."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: This low level driver does not support setting a screen size. It is being ignored.")
|
||||
#endif
|
||||
#undef GDISP_SCREEN_WIDTH
|
||||
#undef GDISP_SCREEN_HEIGHT
|
||||
#endif
|
||||
|
||||
#ifndef GDISP_SCREEN_HEIGHT
|
||||
#define GDISP_SCREEN_HEIGHT 240
|
||||
#endif
|
||||
#ifndef GDISP_SCREEN_WIDTH
|
||||
#define GDISP_SCREEN_WIDTH 240
|
||||
#endif
|
||||
#define GDISP_SCREEN_HEIGHT 240
|
||||
#define GDISP_SCREEN_WIDTH 240
|
||||
|
||||
#define PRIV(g) ((UC8173_Private*)((g)->priv))
|
||||
#define FRAMEBUFFER(g) ((uint8_t *)(PRIV(g)+1))
|
||||
@ -354,7 +351,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay* g)
|
||||
*p &=~ xybit(x, LLDCOLOR_MASK());
|
||||
*p |= xybit(x, gdispColor2Native(g->p.color));
|
||||
|
||||
//#warning ToDo
|
||||
// ToDo
|
||||
// There appears to be an issue in the silicone, still talking to the manufacturer about this one. Update will follow!
|
||||
#if 0
|
||||
// Update the flush window region
|
||||
|
@ -380,7 +380,11 @@
|
||||
KMC_RECORDSTART, 0
|
||||
};
|
||||
#elif !GKEYBOARD_LAYOUT_OFF
|
||||
#warning "The WIN32 keyboard driver is not using the layout engine. If no other keyboard is using it consider defining GKEYBOARD_LAYOUT_OFF=TRUE to save code size."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "The WIN32 keyboard driver is not using the layout engine. If no other keyboard is using it consider defining GKEYBOARD_LAYOUT_OFF=TRUE to save code size."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("The WIN32 keyboard driver is not using the layout engine. If no other keyboard is using it consider defining GKEYBOARD_LAYOUT_OFF=TRUE to save code size.")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Forward definitions
|
||||
|
@ -132,7 +132,11 @@
|
||||
KMC_RECORDSTART, 0
|
||||
};
|
||||
#elif !GKEYBOARD_LAYOUT_OFF
|
||||
#warning "The X keyboard driver is not using the layout engine. If no other keyboard is using it consider defining GKEYBOARD_LAYOUT_OFF=TRUE to save code size."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "The X keyboard driver is not using the layout engine. If no other keyboard is using it consider defining GKEYBOARD_LAYOUT_OFF=TRUE to save code size."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("The X keyboard driver is not using the layout engine. If no other keyboard is using it consider defining GKEYBOARD_LAYOUT_OFF=TRUE to save code size.")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Forward definitions
|
||||
|
@ -137,7 +137,11 @@
|
||||
|
||||
// Mutex protection is required for LWIP
|
||||
#if !GDISP_GFXNET_UNSAFE_SOCKETS
|
||||
#warning "GDISP: uGFXnet - LWIP sockets are not thread-safe. GDISP_GFXNET_UNSAFE_SOCKETS has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: uGFXnet - LWIP sockets are not thread-safe. GDISP_GFXNET_UNSAFE_SOCKETS has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: uGFXnet - LWIP sockets are not thread-safe. GDISP_GFXNET_UNSAFE_SOCKETS has been turned on for you.")
|
||||
#endif
|
||||
#undef GDISP_GFXNET_UNSAFE_SOCKETS
|
||||
#define GDISP_GFXNET_UNSAFE_SOCKETS TRUE
|
||||
#endif
|
||||
@ -352,7 +356,11 @@ static DECLARE_THREAD_FUNCTION(NetThread, param) {
|
||||
fdmax = listenfd; /* so far, it's this one*/
|
||||
|
||||
#if GDISP_GFXNET_BROKEN_LWIP_ACCEPT
|
||||
#warning "Using GDISP_GFXNET_BROKEN_LWIP_ACCEPT limits the number of displays and the use of GFXNET. Avoid if possible!"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "Using GDISP_GFXNET_BROKEN_LWIP_ACCEPT limits the number of displays and the use of GFXNET. Avoid if possible!"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("Using GDISP_GFXNET_BROKEN_LWIP_ACCEPT limits the number of displays and the use of GFXNET. Avoid if possible!")
|
||||
#endif
|
||||
len = sizeof(addr);
|
||||
if((clientfd = accept(listenfd, (struct sockaddr *)&addr, &len)) == (SOCKET_TYPE)-1)
|
||||
gfxHalt("GDISP: uGFXnet - Accept failed");
|
||||
|
6
gfx.h
6
gfx.h
@ -38,6 +38,12 @@
|
||||
#define TRUE -1
|
||||
#endif
|
||||
|
||||
// Macro concatination and strify - not API documented
|
||||
#define GFXCATX(a, b) GFXCAT(a, b)
|
||||
#define GFXCAT(a, b) a ## b
|
||||
#define GFXSTRX(a) GFXSTR(a)
|
||||
#define GFXSTR(a) #a
|
||||
|
||||
/* gfxconf.h is the user's project configuration for the GFX system. */
|
||||
#include "gfxconf.h"
|
||||
|
||||
|
@ -19,14 +19,22 @@
|
||||
#if GFX_USE_GADC
|
||||
#if !GFX_USE_GTIMER
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GADC: GFX_USE_GTIMER is required if GFX_USE_GADC is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GADC: GFX_USE_GTIMER is required if GFX_USE_GADC is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GADC: GFX_USE_GTIMER is required if GFX_USE_GADC is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GTIMER
|
||||
#define GFX_USE_GTIMER TRUE
|
||||
#endif
|
||||
#if !GFX_USE_GQUEUE || !GQUEUE_NEED_GSYNC || !GQUEUE_NEED_BUFFERS
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GADC: GFX_USE_GQUEUE, GQUEUE_NEED_BUFFERS and GQUEUE_NEED_GSYNC are required if GFX_USE_GADC is TRUE. They have been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GADC: GFX_USE_GQUEUE, GQUEUE_NEED_BUFFERS and GQUEUE_NEED_GSYNC are required if GFX_USE_GADC is TRUE. They have been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GADC: GFX_USE_GQUEUE, GQUEUE_NEED_BUFFERS and GQUEUE_NEED_GSYNC are required if GFX_USE_GADC is TRUE. They have been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GQUEUE
|
||||
#define GFX_USE_GQUEUE TRUE
|
||||
|
@ -22,21 +22,33 @@
|
||||
#endif
|
||||
#if !GFX_USE_GQUEUE
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GAUDIO: GFX_USE_GQUEUE is required if GFX_USE_GAUDIO is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GAUDIO: GFX_USE_GQUEUE is required if GFX_USE_GAUDIO is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GAUDIO: GFX_USE_GQUEUE is required if GFX_USE_GAUDIO is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GQUEUE
|
||||
#define GFX_USE_GQUEUE TRUE
|
||||
#endif
|
||||
#if GAUDIO_NEED_PLAY && !GQUEUE_NEED_ASYNC
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GAUDIO: GQUEUE_NEED_ASYNC is required if GAUDIO_NEED_PLAY is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GAUDIO: GQUEUE_NEED_ASYNC is required if GAUDIO_NEED_PLAY is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GAUDIO: GQUEUE_NEED_ASYNC is required if GAUDIO_NEED_PLAY is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GQUEUE_NEED_ASYNC
|
||||
#define GQUEUE_NEED_ASYNC TRUE
|
||||
#endif
|
||||
#if !GQUEUE_NEED_GSYNC || !GQUEUE_NEED_BUFFERS
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GAUDIO: GQUEUE_NEED_BUFFERS and GQUEUE_NEED_GSYNC are required if GFX_USE_GAUDIO is TRUE. They have been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GAUDIO: GQUEUE_NEED_BUFFERS and GQUEUE_NEED_GSYNC are required if GFX_USE_GAUDIO is TRUE. They have been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GAUDIO: GQUEUE_NEED_BUFFERS and GQUEUE_NEED_GSYNC are required if GFX_USE_GAUDIO is TRUE. They have been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GQUEUE_NEED_BUFFERS
|
||||
#define GQUEUE_NEED_BUFFERS TRUE
|
||||
@ -45,7 +57,11 @@
|
||||
#endif
|
||||
#if GFX_USE_GEVENT && !GFX_USE_GTIMER
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GAUDIO: GFX_USE_GTIMER is required if GFX_USE_GAUDIO and GFX_USE_GEVENT are TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GAUDIO: GFX_USE_GTIMER is required if GFX_USE_GAUDIO and GFX_USE_GEVENT are TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GAUDIO: GFX_USE_GTIMER is required if GFX_USE_GAUDIO and GFX_USE_GEVENT are TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GTIMER
|
||||
#define GFX_USE_GTIMER TRUE
|
||||
|
@ -267,7 +267,11 @@ static void PNG_oColor(PNG_output *o, color_t c) {
|
||||
#if (GDISP_IMAGE_PNG_Z_BUFFER_SIZE & ~(GDISP_IMAGE_PNG_Z_BUFFER_SIZE-1)) == GDISP_IMAGE_PNG_Z_BUFFER_SIZE
|
||||
#define WRAP_ZBUF(x) { x &= GDISP_IMAGE_PNG_Z_BUFFER_SIZE-1; }
|
||||
#else
|
||||
#warning "PNG: GDISP_IMAGE_PNG_Z_BUFFER_SIZE is more efficient as a power of 2"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "PNG: GDISP_IMAGE_PNG_Z_BUFFER_SIZE is more efficient as a power of 2"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("PNG: GDISP_IMAGE_PNG_Z_BUFFER_SIZE is more efficient as a power of 2")
|
||||
#endif
|
||||
#define WRAP_ZBUF(x) { if (x >= GDISP_IMAGE_PNG_Z_BUFFER_SIZE) x = 0; }
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,11 @@
|
||||
#if GFX_USE_GDISP
|
||||
#if !GFX_USE_GDRIVER
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GDISP: GFX_USE_GDRIVER is required. GFX_USE_GDRIVER has turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: GFX_USE_GDRIVER is required. GFX_USE_GDRIVER has turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: GFX_USE_GDRIVER is required. GFX_USE_GDRIVER has turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GDRIVER
|
||||
#define GFX_USE_GDRIVER TRUE
|
||||
@ -34,7 +38,11 @@
|
||||
#endif
|
||||
#if GDISP_NEED_AUTOFLUSH && GDISP_NEED_TIMERFLUSH
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GDISP: Both GDISP_NEED_AUTOFLUSH and GDISP_NEED_TIMERFLUSH has been set. GDISP_NEED_TIMERFLUSH has been disabled for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: Both GDISP_NEED_AUTOFLUSH and GDISP_NEED_TIMERFLUSH has been set. GDISP_NEED_TIMERFLUSH has been disabled for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: Both GDISP_NEED_AUTOFLUSH and GDISP_NEED_TIMERFLUSH has been set. GDISP_NEED_TIMERFLUSH has been disabled for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GDISP_NEED_TIMERFLUSH
|
||||
#define GDISP_NEED_TIMERFLUSH FALSE
|
||||
@ -45,7 +53,11 @@
|
||||
#endif
|
||||
#if !GFX_USE_GTIMER
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GDISP: GDISP_NEED_TIMERFLUSH has been set but GFX_USE_GTIMER has not been set. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: GDISP_NEED_TIMERFLUSH has been set but GFX_USE_GTIMER has not been set. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: GDISP_NEED_TIMERFLUSH has been set but GFX_USE_GTIMER has not been set. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GTIMER
|
||||
#define GFX_USE_GTIMER TRUE
|
||||
@ -56,20 +68,33 @@
|
||||
#if GDISP_NEED_ANTIALIAS && !GDISP_NEED_PIXELREAD
|
||||
#if GDISP_HARDWARE_PIXELREAD
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GDISP: GDISP_NEED_ANTIALIAS has been set but GDISP_NEED_PIXELREAD has not. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: GDISP_NEED_ANTIALIAS has been set but GDISP_NEED_PIXELREAD has not. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: GDISP_NEED_ANTIALIAS has been set but GDISP_NEED_PIXELREAD has not. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GDISP_NEED_PIXELREAD
|
||||
#define GDISP_NEED_PIXELREAD TRUE
|
||||
#else
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GDISP: GDISP_NEED_ANTIALIAS has been set but your hardware does not support reading back pixels. Anti-aliasing will only occur for filled characters."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: GDISP_NEED_ANTIALIAS has been set but your hardware does not support reading back pixels. Anti-aliasing will only occur for filled characters."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: GDISP_NEED_ANTIALIAS has been set but your hardware does not support reading back pixels. Anti-aliasing will only occur for filled characters.")
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#if (defined(GDISP_INCLUDE_FONT_SMALL) && GDISP_INCLUDE_FONT_SMALL) || (defined(GDISP_INCLUDE_FONT_LARGER) && GDISP_INCLUDE_FONT_LARGER)
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GDISP: An old font (Small or Larger) has been defined. A single default font of UI2 has been added instead."
|
||||
#warning "GDISP: Please see <$(GFXLIB)/include/gdisp/fonts/fonts.h> for a list of available font names."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: An old font (Small or Larger) has been defined. A single default font of UI2 has been added instead."
|
||||
#warning "GDISP: Please see <$(GFXLIB)/include/gdisp/fonts/fonts.h> for a list of available font names."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: An old font (Small or Larger) has been defined. A single default font of UI2 has been added instead.")
|
||||
COMPILER_WARNING("GDISP: Please see <$(GFXLIB)/include/gdisp/fonts/fonts.h> for a list of available font names.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GDISP_INCLUDE_FONT_UI2
|
||||
#define GDISP_INCLUDE_FONT_UI2 TRUE
|
||||
@ -77,7 +102,11 @@
|
||||
#if GDISP_NEED_IMAGE
|
||||
#if !GFX_USE_GFILE
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GDISP: GFX_USE_GFILE is required when GDISP_NEED_IMAGE is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GDISP: GFX_USE_GFILE is required when GDISP_NEED_IMAGE is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GDISP: GFX_USE_GFILE is required when GDISP_NEED_IMAGE is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GFILE
|
||||
#define GFX_USE_GFILE TRUE
|
||||
|
@ -285,12 +285,19 @@
|
||||
*
|
||||
* Please keep this list in alphabetical order to keep it easier to maintain
|
||||
*/
|
||||
|
||||
#undef GFX_COMPILER_NAME
|
||||
#undef GFX_COMPILER_TESTED
|
||||
#undef GFX_COMPILER_VERSION_MAJOR
|
||||
#undef GFX_COMPILER_VERSION_MINOR
|
||||
#undef GFX_COMPILER_VERSION_PATCH
|
||||
#undef GFX_COMPILER_VERSION_BUILD
|
||||
#undef GFX_COMPILER_WARNING_TYPE
|
||||
#define GFX_COMPILER_WARNING_NONE 0 /* Don't display warnings */
|
||||
#define GFX_COMPILER_WARNING_DIRECT 1 /* Use #warning text, no macro expansion possible */
|
||||
#define GFX_COMPILER_WARNING_MACRO 2 /* Use COMPILER_WARNING(text), macro expansion possible */
|
||||
#define GFX_COMPILER_WARNING_GCC 3 /* Use GCC style warnings - converted to GFX_COMPILER_WARNING_MACRO */
|
||||
|
||||
#if GFX_COMPILER == GFX_COMPILER_ACC
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "Compiler: ACC"
|
||||
@ -338,6 +345,7 @@
|
||||
#define GFX_COMPILER_VERSION_MINOR (((__ARMCC_VERSION)/10000)%10)
|
||||
#define GFX_COMPILER_VERSION_PATCH (((__ARMCC_VERSION)/1000)%10)
|
||||
#define GFX_COMPILER_VERSION_BUILD ((__ARMCC_VERSION)%1000)
|
||||
#pragma anon_unions // Allow anonymous unions
|
||||
#define __LITTLE_IF_NOT_BIG__ // Oops - Defines __BIG_ENDIAN but not __LITTLE_ENDIAN
|
||||
#elif GFX_COMPILER == GFX_COMPILER_AZTEC
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
@ -362,11 +370,9 @@
|
||||
#define GFX_COMPILER_VERSION_MINOR (((__CC65__)/0x10)%0x10)
|
||||
#define GFX_COMPILER_VERSION_PATCH ((__CC65__)%0x10)
|
||||
#elif GFX_COMPILER == GFX_COMPILER_CLANG
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "Compiler: CLANG"
|
||||
#endif
|
||||
#define GFX_COMPILER_NAME "CLang (LLVM)"
|
||||
#define GFX_COMPILER_TESTED TRUE
|
||||
#define GFX_COMPILER_WARNING_TYPE GFX_COMPILER_WARNING_GCC
|
||||
#define GFX_COMPILER_VERSION_MAJOR (__clang_major__)
|
||||
#define GFX_COMPILER_VERSION_MINOR (__clang_minor__)
|
||||
#define GFX_COMPILER_VERSION_PATCH (__clang_patchlevel__)
|
||||
@ -404,11 +410,9 @@
|
||||
#define GFX_COMPILER_VERSION_MAJOR (_RELEASE)
|
||||
#define GFX_COMPILER_VERSION_MINOR (_RELEASE_MINOR)
|
||||
#elif GFX_COMPILER == GFX_COMPILER_CYGWIN
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "Compiler: CYGWIN"
|
||||
#endif
|
||||
#define GFX_COMPILER_NAME "Cygwin"
|
||||
#define GFX_COMPILER_TESTED TRUE
|
||||
#define GFX_COMPILER_WARNING_TYPE GFX_COMPILER_WARNING_GCC
|
||||
#define GFX_COMPILER_VERSION_MAJOR (__GNUC__)
|
||||
#define GFX_COMPILER_VERSION_MINOR (__GNUC_MINOR__)
|
||||
#ifdef __GNUC_PATCHLEVEL__
|
||||
@ -489,11 +493,9 @@
|
||||
#endif
|
||||
#define GFX_COMPILER_NAME "Fujitsu C++"
|
||||
#elif GFX_COMPILER == GFX_COMPILER_GCC
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "Compiler: GCC"
|
||||
#endif
|
||||
#define GFX_COMPILER_NAME "GCC"
|
||||
#define GFX_COMPILER_TESTED TRUE
|
||||
#define GFX_COMPILER_WARNING_TYPE GFX_COMPILER_WARNING_GCC
|
||||
#define GFX_COMPILER_VERSION_MAJOR (__GNUC__)
|
||||
#define GFX_COMPILER_VERSION_MINOR (__GNUC_MINOR__)
|
||||
#ifdef __GNUC_PATCHLEVEL__
|
||||
@ -654,11 +656,9 @@
|
||||
#endif
|
||||
#define GFX_COMPILER_NAME "Microway NDP C"
|
||||
#elif GFX_COMPILER == GFX_COMPILER_MINGW32
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "Compiler: MINGW32"
|
||||
#endif
|
||||
#define GFX_COMPILER_NAME "MingW32"
|
||||
#define GFX_COMPILER_TESTED TRUE
|
||||
#define GFX_COMPILER_WARNING_TYPE GFX_COMPILER_WARNING_GCC
|
||||
#define GFX_COMPILER_VERSION_MAJOR (__GNUC__)
|
||||
#define GFX_COMPILER_VERSION_MINOR (__GNUC_MINOR__)
|
||||
#ifdef __GNUC_PATCHLEVEL__
|
||||
@ -666,10 +666,8 @@
|
||||
#endif
|
||||
#define DEPRECATED(msg) __attribute__((deprecated(msg)))
|
||||
#elif GFX_COMPILER == GFX_COMPILER_MINGW64
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "Compiler: MINGW64"
|
||||
#endif
|
||||
#define GFX_COMPILER_NAME "MingW64"
|
||||
#define GFX_COMPILER_WARNING_TYPE GFX_COMPILER_WARNING_GCC
|
||||
#define GFX_COMPILER_VERSION_MAJOR (__GNUC__)
|
||||
#define GFX_COMPILER_VERSION_MINOR (__GNUC_MINOR__)
|
||||
#ifdef __GNUC_PATCHLEVEL__
|
||||
@ -890,9 +888,6 @@
|
||||
#endif
|
||||
#define GFX_COMPILER_NAME "VBCC"
|
||||
#elif GFX_COMPILER == GFX_COMPILER_VS
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "Compiler: VS"
|
||||
#endif
|
||||
#define GFX_COMPILER_NAME "Microsoft Visual Studio"
|
||||
#ifdef _MSC_FULL_VER
|
||||
#if _MSC_FULL_VER < 100000000
|
||||
@ -912,6 +907,9 @@
|
||||
#define GFX_COMPILER_VERSION_BUILD (_MSC_BUILD)
|
||||
#endif
|
||||
#define DEPRECATED(msg) __declspec(deprecated(msg))
|
||||
|
||||
#define GFX_COMPILER_WARNING_TYPE GFX_COMPILER_WARNING_MACRO
|
||||
#define COMPILER_WARNING(desc) __pragma(message(__FILE__ "(" GFXSTRX(__LINE__) "): warning uGFX: " desc))
|
||||
#elif GFX_COMPILER == GFX_COMPILER_WATCOM
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "Compiler: WATCOM"
|
||||
@ -928,8 +926,17 @@
|
||||
#define GFX_COMPILER_VERSION_MINOR (((__ZTC__)/0x10)%0x10)
|
||||
#define GFX_COMPILER_VERSION_PATCH ((__ZTC__)%0x10)
|
||||
#endif
|
||||
|
||||
#ifndef GFX_COMPILER_TESTED
|
||||
#define GFX_COMPILER_TESTED FALSE
|
||||
#define GFX_COMPILER_TESTED FALSE
|
||||
#endif
|
||||
#ifndef GFX_COMPILER_WARNING_TYPE
|
||||
#define GFX_COMPILER_WARNING_TYPE GFX_COMPILER_WARNING_DIRECT
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_GCC
|
||||
#undef GFX_COMPILER_WARNING_TYPE
|
||||
#define GFX_COMPILER_WARNING_TYPE GFX_COMPILER_WARNING_MACRO
|
||||
#define COMPILER_PRAGMA(x) _Pragma(#x)
|
||||
#define COMPILER_WARNING(desc) COMPILER_PRAGMA(GCC warning desc)
|
||||
#endif
|
||||
/************************************ End Compiler Settings *************************/
|
||||
|
||||
@ -944,6 +951,11 @@
|
||||
#define GFX_COMPILER_NAME "Unknown"
|
||||
#warning "You are using an unknown compiler. Please report this on the ugfx forum"
|
||||
#endif
|
||||
#if GFX_SHOW_COMPILER && GFX_DISPLAY_RULE_WARNINGS
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING(GFXSTRX(Compiler: GFX_COMPILER_NAME))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief This compiler is tested with ugfx
|
||||
@ -955,8 +967,12 @@
|
||||
* tested with a different compiler version. Please report any problems
|
||||
* on the ugfx forum.
|
||||
*/
|
||||
#if !GFX_COMPILER_TESTED
|
||||
#warning "You are using an un-tested compiler. Please report any compile errors or warnings on the ugfx forum"
|
||||
#if !GFX_COMPILER_TESTED && GFX_DISPLAY_RULE_WARNINGS
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "You are using an un-tested compiler. Please report any compile errors or warnings on the ugfx forum"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING(GFXSTRX(You are using the un-tested GFX_COMPILER_NAME compiler. Please report any compile errors or warnings on the ugfx forum))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -19,14 +19,22 @@
|
||||
#if GFX_USE_GINPUT
|
||||
#if !GFX_USE_GEVENT
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GINPUT: GFX_USE_GEVENT is required if GFX_USE_GINPUT is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GINPUT: GFX_USE_GEVENT is required if GFX_USE_GINPUT is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GINPUT: GFX_USE_GEVENT is required if GFX_USE_GINPUT is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GEVENT
|
||||
#define GFX_USE_GEVENT TRUE
|
||||
#endif
|
||||
#if !GFX_USE_GTIMER
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GINPUT: GFX_USE_GTIMER is required if GFX_USE_GINPUT is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GINPUT: GFX_USE_GTIMER is required if GFX_USE_GINPUT is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GINPUT: GFX_USE_GTIMER is required if GFX_USE_GINPUT is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GTIMER
|
||||
#define GFX_USE_GTIMER TRUE
|
||||
|
@ -25,7 +25,11 @@ void _gosInit(void)
|
||||
* getting here!
|
||||
*/
|
||||
#if !GFX_OS_INIT_NO_WARNING
|
||||
#warning "GOS: Arduino - Make sure you initialize your hardware and the C runtime before calling gfxInit() in your application!"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS: Arduino - Make sure you initialize your hardware and the C runtime before calling gfxInit() in your application!"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS: Arduino - Make sure you initialize your hardware and the C runtime before calling gfxInit() in your application!")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Start the heap allocator
|
||||
|
@ -49,7 +49,11 @@ void _gosInit(void)
|
||||
}
|
||||
#endif
|
||||
#elif !GFX_OS_INIT_NO_WARNING
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call halInit() and chSysInit() before gfxInit() in your application!"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call halInit() and chSysInit() before gfxInit() in your application!"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS: Operating System initialization has been turned off. Make sure you call halInit() and chSysInit() before gfxInit() in your application!")
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,11 @@ void _gosInit(void)
|
||||
if (!osKernelRunning())
|
||||
osKernelStart();
|
||||
#elif !GFX_OS_INIT_NO_WARNING
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call osKernelInitialize() and osKernelStart() before gfxInit() in your application!"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call osKernelInitialize() and osKernelStart() before gfxInit() in your application!"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS: Operating System initialization has been turned off. Make sure you call osKernelInitialize() and osKernelStart() before gfxInit() in your application!")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Set up the heap allocator
|
||||
|
@ -15,7 +15,11 @@ void _gosInit(void)
|
||||
#error "GOS: Operating System initialization for eCos is not yet implemented in uGFX. Please set GFX_OS_NO_INIT to TRUE in your gfxconf.h"
|
||||
#endif
|
||||
#if !GFX_OS_INIT_NO_WARNING
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call cyg_scheduler_start() before gfxInit() in your application!"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call cyg_scheduler_start() before gfxInit() in your application!"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS: Operating System initialization has been turned off. Make sure you call cyg_scheduler_start() before gfxInit() in your application!")
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,11 @@
|
||||
void _gosInit(void)
|
||||
{
|
||||
#if GFX_OS_NO_INIT && !GFX_OS_INIT_NO_WARNING
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call vTaskStartScheduler()."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call vTaskStartScheduler()."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS: Operating System initialization has been turned off. Make sure you call vTaskStartScheduler().")
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,11 @@ void _gosInit(void)
|
||||
* getting here!
|
||||
*/
|
||||
#if !GFX_OS_INIT_NO_WARNING
|
||||
#warning "GOS: Raw32 - Make sure you initialize your hardware and the C runtime before calling gfxInit() in your application!"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS: Raw32 - Make sure you initialize your hardware and the C runtime before calling gfxInit() in your application!"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS: Raw32 - Make sure you initialize your hardware and the C runtime before calling gfxInit() in your application!")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Set up the heap allocator
|
||||
|
@ -28,7 +28,11 @@ void _gosInit(void)
|
||||
#error "GOS: Operating System initialization for RawRTOS is not yet implemented in uGFX. Please set GFX_OS_NO_INIT to TRUE in your gfxconf.h"
|
||||
#endif
|
||||
#if !GFX_OS_INIT_NO_WARNING
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call raw_os_start() before gfxInit() in your application!"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS: Operating System initialization has been turned off. Make sure you call raw_os_start() before gfxInit() in your application!"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS: Operating System initialization has been turned off. Make sure you call raw_os_start() before gfxInit() in your application!")
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,11 @@
|
||||
#if GFX_USE_OS_WIN32 || GFX_USE_OS_LINUX || GFX_USE_OS_OSX || GFX_USE_OS_ECOS || \
|
||||
(GFX_OS_HEAP_SIZE == 0 && (GFX_USE_OS_RAW32 || GFX_USE_OS_ARDUINO || GFX_USE_OS_CMSIS || GFX_USE_OS_KEIL))
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GOS: Cannot emulate malloc as gfxAlloc() internally uses malloc on this platform"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS: Cannot emulate malloc as gfxAlloc() internally uses malloc on this platform"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS: Cannot emulate malloc as gfxAlloc() internally uses malloc on this platform")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_EMULATE_MALLOC
|
||||
#define GFX_EMULATE_MALLOC FALSE
|
||||
|
@ -78,7 +78,7 @@ bool_t gfxSemWait(gfxSem *psem, delaytime_t ms) {
|
||||
return WaitForSingleObject(*psem, ms) == WAIT_OBJECT_0;
|
||||
}
|
||||
|
||||
typedef LONG __stdcall (*_NtQuerySemaphore)(
|
||||
typedef LONG (__stdcall *_NtQuerySemaphore)(
|
||||
HANDLE SemaphoreHandle,
|
||||
DWORD SemaphoreInformationClass, /* Would be SEMAPHORE_INFORMATION_CLASS */
|
||||
PVOID SemaphoreInformation, /* but this is to much to dump here */
|
||||
@ -101,7 +101,7 @@ semcount_t gfxSemCounter(gfxSem *pSem) {
|
||||
return BasicInfo.CurrentCount;
|
||||
}
|
||||
|
||||
gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param) {
|
||||
gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION(*fn,p), void *param) {
|
||||
(void) stackarea;
|
||||
HANDLE thd;
|
||||
|
||||
|
@ -46,8 +46,8 @@ typedef LONG semcount_t;
|
||||
typedef DWORD threadreturn_t;
|
||||
typedef int threadpriority_t;
|
||||
|
||||
#define DECLARE_THREAD_FUNCTION(fnName, param) threadreturn_t WINAPI fnName(void *param)
|
||||
#define DECLARE_THREAD_STACK(name, sz) uint8_t name[0];
|
||||
#define DECLARE_THREAD_FUNCTION(fnName, param) threadreturn_t (WINAPI fnName)(void *param)
|
||||
#define DECLARE_THREAD_STACK(name, sz) uint8_t name[1];
|
||||
#define THREAD_RETURN(retval) return retval
|
||||
|
||||
#define TIME_IMMEDIATE 0
|
||||
@ -96,7 +96,7 @@ bool_t gfxSemWait(gfxSem *psem, delaytime_t ms);
|
||||
semcount_t gfxSemCounter(gfxSem *pSem);
|
||||
void gfxSystemLock(void);
|
||||
void gfxSystemUnlock(void);
|
||||
gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param);
|
||||
gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION(*fn,p), void *param);
|
||||
threadreturn_t gfxThreadWait(gfxThreadHandle thread);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -13,7 +13,11 @@
|
||||
*/
|
||||
|
||||
#if CORTEX_USE_FPU
|
||||
#warning "GOS Threads: You have specified GFX_CPU=GFX_CPU_CORTX_M? with no hardware floating point support but CORTEX_USE_FPU is TRUE. Try using GFX_CPU_GFX_CPU_CORTEX_M?_FP instead"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS Threads: You have specified GFX_CPU=GFX_CPU_CORTX_M? with no hardware floating point support but CORTEX_USE_FPU is TRUE. Try using GFX_CPU_GFX_CPU_CORTEX_M?_FP instead"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS Threads: You have specified GFX_CPU=GFX_CPU_CORTX_M? with no hardware floating point support but CORTEX_USE_FPU is TRUE. Try using GFX_CPU_GFX_CPU_CORTEX_M?_FP instead")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if GFX_COMPILER == GFX_COMPILER_GCC || GFX_COMPILER == GFX_COMPILER_CYGWIN || GFX_COMPILER == GFX_COMPILER_MINGW32 || GFX_COMPILER == GFX_COMPILER_MINGW64
|
||||
@ -128,5 +132,9 @@
|
||||
}
|
||||
|
||||
#else
|
||||
#warning "GOS: Threads: You have specified a specific CPU but your compiler is not supported. Defaulting to CLIB switching"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS Threads: You have specified a specific CPU but your compiler is not supported. Defaulting to CLIB switching"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS Threads: You have specified a specific CPU but your compiler is not supported. Defaulting to CLIB switching")
|
||||
#endif
|
||||
#endif
|
||||
|
@ -14,7 +14,11 @@
|
||||
|
||||
|
||||
#if CORTEX_USE_FPU
|
||||
#warning "GOS Threads: You have specified GFX_CPU=GFX_CPU_CORTX_M? with no hardware floating point support but CORTEX_USE_FPU is TRUE. Try using GFX_CPU_GFX_CPU_CORTEX_M?_FP instead"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS Threads: You have specified GFX_CPU=GFX_CPU_CORTX_M? with no hardware floating point support but CORTEX_USE_FPU is TRUE. Try using GFX_CPU_GFX_CPU_CORTEX_M?_FP instead"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS Threads: You have specified GFX_CPU=GFX_CPU_CORTX_M? with no hardware floating point support but CORTEX_USE_FPU is TRUE. Try using GFX_CPU_GFX_CPU_CORTEX_M?_FP instead")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if GFX_COMPILER == GFX_COMPILER_GCC || GFX_COMPILER == GFX_COMPILER_CYGWIN || GFX_COMPILER == GFX_COMPILER_MINGW32 || GFX_COMPILER == GFX_COMPILER_MINGW64
|
||||
@ -91,5 +95,9 @@
|
||||
}
|
||||
|
||||
#else
|
||||
#warning "GOS: Threads: You have specified a specific CPU but your compiler is not supported. Defaulting to CLIB switching"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS Threads: You have specified a specific CPU but your compiler is not supported. Defaulting to CLIB switching"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS Threads: You have specified a specific CPU but your compiler is not supported. Defaulting to CLIB switching")
|
||||
#endif
|
||||
#endif
|
||||
|
@ -92,5 +92,9 @@
|
||||
}
|
||||
|
||||
#else
|
||||
#warning "GOS: Threads: You have specified a specific CPU but your compiler is not supported. Defaulting to CLIB switching"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GOS Threads: You have specified a specific CPU but your compiler is not supported. Defaulting to CLIB switching"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GOS Threads: You have specified a specific CPU but your compiler is not supported. Defaulting to CLIB switching")
|
||||
#endif
|
||||
#endif
|
||||
|
@ -19,7 +19,11 @@
|
||||
#if GFX_USE_GQUEUE
|
||||
#if GQUEUE_NEED_BUFFERS && !GQUEUE_NEED_GSYNC
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GQUEUE: GQUEUE_NEED_GSYNC is required if GQUEUE_NEED_BUFFERS is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GQUEUE: GQUEUE_NEED_GSYNC is required if GQUEUE_NEED_BUFFERS is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GQUEUE: GQUEUE_NEED_GSYNC is required if GQUEUE_NEED_BUFFERS is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GQUEUE_NEED_GSYNC
|
||||
#define GQUEUE_NEED_GSYNC TRUE
|
||||
|
@ -19,8 +19,11 @@
|
||||
#if GFX_USE_GTIMER
|
||||
#if GFX_USE_GDISP && !GDISP_NEED_MULTITHREAD
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GTIMER: GDISP_NEED_MULTITHREAD has not been specified."
|
||||
#warning "GTIMER: Make sure you are not performing any GDISP/GWIN drawing operations in the timer callback!"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GTIMER: GDISP_NEED_MULTITHREAD has not been specified. Make sure you are not performing any GDISP/GWIN drawing operations in the timer callback!"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GTIMER: GDISP_NEED_MULTITHREAD has not been specified. Make sure you are not performing any GDISP/GWIN drawing operations in the timer callback!")
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
@ -747,7 +747,11 @@ void gwinListDefaultDraw(GWidgetObject* gw, void* param) {
|
||||
gdispGFillConvexPoly(gw->g.display, gw->g.x+iwidth+((LST_SCROLLWIDTH-LST_ARROW_SZ)/2+2), gw->g.y+(LST_ARROW_SZ/2+1), upArrow, 3, ps->fill);
|
||||
gdispGFillConvexPoly(gw->g.display, gw->g.x+iwidth+((LST_SCROLLWIDTH-LST_ARROW_SZ)/2+2), gw->g.y+gw->g.height-(LST_ARROW_SZ+LST_ARROW_SZ/2+1), downArrow, 3, ps->fill);
|
||||
#else
|
||||
#warning "GWIN: Lists display better when GDISP_NEED_CONVEX_POLYGON is turned on"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: Lists display better when GDISP_NEED_CONVEX_POLYGON is turned on"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: Lists display better when GDISP_NEED_CONVEX_POLYGON is turned on")
|
||||
#endif
|
||||
gdispGFillArea(gw->g.display, gw->g.x+iwidth+((LST_SCROLLWIDTH-LST_ARROW_SZ)/2+2), gw->g.y+(LST_ARROW_SZ/2+1), LST_ARROW_SZ, LST_ARROW_SZ, ps->fill);
|
||||
gdispGFillArea(gw->g.display, gw->g.x+iwidth+((LST_SCROLLWIDTH-LST_ARROW_SZ)/2+2), gw->g.y+gw->g.height-(LST_ARROW_SZ+LST_ARROW_SZ/2+1), LST_ARROW_SZ, LST_ARROW_SZ, ps->fill);
|
||||
#endif
|
||||
|
@ -23,7 +23,11 @@
|
||||
#endif
|
||||
#if !GDISP_NEED_CLIP
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GWIN: Drawing can occur outside the defined windows as GDISP_NEED_CLIP is FALSE"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: Drawing can occur outside the defined windows as GDISP_NEED_CLIP is FALSE"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: Drawing can occur outside the defined windows as GDISP_NEED_CLIP is FALSE")
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -31,7 +35,11 @@
|
||||
#if GWIN_NEED_TABSET || GWIN_NEED_FRAME || GWIN_NEED_CONTAINER
|
||||
#if !GWIN_NEED_CONTAINERS
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GWIN: GWIN_NEED_CONTAINERS is required when a container is enabled. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: GWIN_NEED_CONTAINERS is required when a container is enabled. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: GWIN_NEED_CONTAINERS is required when a container is enabled. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GWIN_NEED_CONTAINERS
|
||||
#define GWIN_NEED_CONTAINERS TRUE
|
||||
@ -41,7 +49,11 @@
|
||||
GWIN_NEED_IMAGE || GWIN_NEED_CHECKBOX || GWIN_NEED_PROGRESSBAR || GWIN_NEED_KEYBOARD || GWIN_NEED_TEXTEDIT
|
||||
#if !GWIN_NEED_WIDGET
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GWIN: GWIN_NEED_WIDGET is required when a widget is used. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: GWIN_NEED_WIDGET is required when a widget is used. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: GWIN_NEED_WIDGET is required when a widget is used. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GWIN_NEED_WIDGET
|
||||
#define GWIN_NEED_WIDGET TRUE
|
||||
@ -52,7 +64,11 @@
|
||||
#if GWIN_NEED_CONTAINERS
|
||||
#if !GWIN_NEED_WIDGET
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GWIN: GWIN_NEED_WIDGET is required when GWIN_NEED_CONTAINERS is enabled. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: GWIN_NEED_WIDGET is required when GWIN_NEED_CONTAINERS is enabled. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: GWIN_NEED_WIDGET is required when GWIN_NEED_CONTAINERS is enabled. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GWIN_NEED_WIDGET
|
||||
#define GWIN_NEED_WIDGET TRUE
|
||||
@ -68,14 +84,22 @@
|
||||
#endif
|
||||
#if !GWIN_NEED_WINDOWMANAGER
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GWIN: GWIN_NEED_WINDOWMANAGER is required if GWIN_NEED_WIDGET is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: GWIN_NEED_WINDOWMANAGER is required if GWIN_NEED_WIDGET is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: GWIN_NEED_WINDOWMANAGER is required if GWIN_NEED_WIDGET is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GWIN_NEED_WINDOWMANAGER
|
||||
#define GWIN_NEED_WINDOWMANAGER TRUE
|
||||
#endif
|
||||
#if !GDISP_NEED_MULTITHREAD
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GWIN: GDISP_NEED_MULTITHREAD is required if GWIN_NEED_WIDGET is TRUE. It has been turned on for you"
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: GDISP_NEED_MULTITHREAD is required if GWIN_NEED_WIDGET is TRUE. It has been turned on for you"
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: GDISP_NEED_MULTITHREAD is required if GWIN_NEED_WIDGET is TRUE. It has been turned on for you")
|
||||
#endif
|
||||
#endif
|
||||
#undef GDISP_NEED_MULTITHREAD
|
||||
#define GDISP_NEED_MULTITHREAD TRUE
|
||||
@ -84,7 +108,11 @@
|
||||
#if GWIN_NEED_WINDOWMANAGER
|
||||
#if !GFX_USE_GQUEUE || !GQUEUE_NEED_ASYNC
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GWIN: GFX_USE_GQUEUE and GQUEUE_NEED_ASYNC is required if GWIN_NEED_WINDOWMANAGER is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: GFX_USE_GQUEUE and GQUEUE_NEED_ASYNC is required if GWIN_NEED_WINDOWMANAGER is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: GFX_USE_GQUEUE and GQUEUE_NEED_ASYNC is required if GWIN_NEED_WINDOWMANAGER is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GQUEUE
|
||||
#undef GQUEUE_NEED_ASYNC
|
||||
@ -93,7 +121,11 @@
|
||||
#endif
|
||||
#if !GFX_USE_GTIMER
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GWIN: GFX_USE_GTIMER is required if GWIN_NEED_WINDOWMANAGER is TRUE. It has been turned on for you."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: GFX_USE_GTIMER is required if GWIN_NEED_WINDOWMANAGER is TRUE. It has been turned on for you."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: GFX_USE_GTIMER is required if GWIN_NEED_WINDOWMANAGER is TRUE. It has been turned on for you.")
|
||||
#endif
|
||||
#endif
|
||||
#undef GFX_USE_GTIMER
|
||||
#define GFX_USE_GTIMER TRUE
|
||||
@ -109,7 +141,11 @@
|
||||
#if GWIN_NEED_RADIO
|
||||
#if !GDISP_NEED_CIRCLE
|
||||
#if GFX_DISPLAY_RULE_WARNINGS
|
||||
#warning "GWIN: GDISP_NEED_CIRCLE should be set to TRUE for much nicer radio button widgets."
|
||||
#if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
|
||||
#warning "GWIN: GDISP_NEED_CIRCLE should be set to TRUE for much nicer radio button widgets."
|
||||
#elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
|
||||
COMPILER_WARNING("GWIN: GDISP_NEED_CIRCLE should be set to TRUE for much nicer radio button widgets.")
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user