GWIN console visible bug fix
parent
891f134bc1
commit
981282bb56
|
@ -8,6 +8,7 @@ FEATURE: Add support for edge to edge touch calibration.
|
||||||
FEATURE: Added progressbar widget
|
FEATURE: Added progressbar widget
|
||||||
FEATURE: Added gdispGDrawThickLine() by user jpa-
|
FEATURE: Added gdispGDrawThickLine() by user jpa-
|
||||||
DEPRECATE: TDISP module removed
|
DEPRECATE: TDISP module removed
|
||||||
|
FIX: Console does not execute gwinPrintf() anymore if not visible
|
||||||
|
|
||||||
|
|
||||||
*** changes after 1.9 ***
|
*** changes after 1.9 ***
|
||||||
|
|
|
@ -90,6 +90,9 @@ void gwinPutChar(GHandle gh, char c) {
|
||||||
#define gcw ((GConsoleObject *)gh)
|
#define gcw ((GConsoleObject *)gh)
|
||||||
uint8_t width, fy, fp;
|
uint8_t width, fy, fp;
|
||||||
|
|
||||||
|
if (!gwinGetVisible(gh))
|
||||||
|
return;
|
||||||
|
|
||||||
if (gh->vmt != &consoleVMT || !gh->font)
|
if (gh->vmt != &consoleVMT || !gh->font)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -147,11 +150,17 @@ void gwinPutChar(GHandle gh, char c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void gwinPutString(GHandle gh, const char *str) {
|
void gwinPutString(GHandle gh, const char *str) {
|
||||||
|
if (!gwinGetVisible(gh))
|
||||||
|
return;
|
||||||
|
|
||||||
while(*str)
|
while(*str)
|
||||||
gwinPutChar(gh, *str++);
|
gwinPutChar(gh, *str++);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gwinPutCharArray(GHandle gh, const char *str, size_t n) {
|
void gwinPutCharArray(GHandle gh, const char *str, size_t n) {
|
||||||
|
if (!gwinGetVisible(gh))
|
||||||
|
return;
|
||||||
|
|
||||||
while(n--)
|
while(n--)
|
||||||
gwinPutChar(gh, *str++);
|
gwinPutChar(gh, *str++);
|
||||||
}
|
}
|
||||||
|
@ -211,6 +220,9 @@ void gwinPrintf(GHandle gh, const char *fmt, ...) {
|
||||||
char tmpbuf[MAX_FILLER + 1];
|
char tmpbuf[MAX_FILLER + 1];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (!gwinGetVisible(gh))
|
||||||
|
return;
|
||||||
|
|
||||||
if (gh->vmt != &consoleVMT || !gh->font)
|
if (gh->vmt != &consoleVMT || !gh->font)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue