From 8d0647732fe984bc9c56d0f33c82583d6e52ff66 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 16 Apr 2019 10:56:33 -0700 Subject: Fix time drawing color (was not being set) The items showing the current time looked ugly on linux when selected, since they were drawing in the leftover blue color used for drawing the R-G-B box pattern. --- examples/tree-custom-draw-items.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/tree-custom-draw-items.cxx') diff --git a/examples/tree-custom-draw-items.cxx b/examples/tree-custom-draw-items.cxx index 7c5265ba9..45bde388e 100644 --- a/examples/tree-custom-draw-items.cxx +++ b/examples/tree-custom-draw-items.cxx @@ -97,6 +97,7 @@ public: X += 35; // Render the date and time, one over the other fl_font(labelfont(), 8); // small font + fl_color(fg); const struct tm *tm = GetTimeStruct(); char s[80]; sprintf(s, "Date: %02d/%02d/%02d", tm->tm_mon+1, tm->tm_mday, tm->tm_year % 100); -- cgit v1.2.3