Hey,
i'm facing a strange problem. I recently noticed that all blue texts are displayed in red and all red texts are displayed in blue.
Looks like emwin swaps the red and blue color part
My current emwin version is 5.40. I went back to some old version with emwin 5.32 and the texts are displayed correct. Now my actual driver to communicate with the lcd has not undergone any changes. I was wondering if there have been some emwin internal changes?
Thats my current code (tested with emwin 5.32 and 5.40)
Display All
Can you tell me where the color information is actually passed to the lcd driver?
i'm facing a strange problem. I recently noticed that all blue texts are displayed in red and all red texts are displayed in blue.
Looks like emwin swaps the red and blue color part
My current emwin version is 5.40. I went back to some old version with emwin 5.32 and the texts are displayed correct. Now my actual driver to communicate with the lcd has not undergone any changes. I was wondering if there have been some emwin internal changes?
Thats my current code (tested with emwin 5.32 and 5.40)
C Source Code
- GUI_DispStringAt("Text 1", 10, 10);
- GUI_SetColor(GUI_RED);
- //displayed in blue in 5.40
- GUI_DispStringAt("Text 2", 10, 40);
- GUI_SetColor(GUI_DARKGREEN);
- //displayed in green in 5.40
- GUI_DispStringAt("Text 3", 10, 70);
- GUI_SetColor(GUI_BLUE);
- //displayed in red in 5.40
- GUI_DispStringAt("Text 4", 60, 100);