Get foreground color while drawing, don't bother with background

This commit is contained in:
Paul Dicker
2025-04-09 18:36:45 +02:00
committed by Stéphane Lesimple
parent d66ee15738
commit 9f583b1ffb
12 changed files with 98 additions and 72 deletions

View File

@@ -394,7 +394,6 @@ typedef struct _GlobalClosure
/*** Common stuff for drawing curves and spirals */
gboolean colors_initialized;
GdkRGBA *background,*foreground,*grid;
GdkRGBA *redText;
char *redMarkup;
GdkRGBA *greenText;
@@ -437,6 +436,10 @@ typedef struct _GlobalClosure
extern GlobalClosure *Closure; /* these should be the only global variables! */
extern int exitCode; /* value to use on exit() */
#ifdef WITH_GUI_YES
extern GdkRGBA transparent;
#endif /* WITH_GUI_YES */
/***
***
***/
@@ -1537,7 +1540,7 @@ typedef struct _Spiral
} Spiral;
#ifdef WITH_GUI_YES
Spiral* GuiCreateSpiral(GdkRGBA*, GdkRGBA*, int, int, int);
Spiral* GuiCreateSpiral(GdkRGBA*, int, int, int);
void GuiSetSpiralWidget(Spiral*, GtkWidget*);
void GuiFreeSpiral(Spiral*);