summaryrefslogtreecommitdiff
path: root/test/contrast.cxx
diff options
context:
space:
mode:
authorerco77 <erco@seriss.com>2023-11-14 07:01:52 -0800
committerGitHub <noreply@github.com>2023-11-14 07:01:52 -0800
commit6842a43a3170c6f7a852186d5688baebdac16e2c (patch)
tree04493580bf8fc798858720c7ab7ffecedeb9ee3e /test/contrast.cxx
parent83f6336f3b024f4a7c55a7499d036f03d946c1b9 (diff)
Fl_Terminal widget (#800)
Pull Fl_Terminal widget from Greg's fork
Diffstat (limited to 'test/contrast.cxx')
-rw-r--r--test/contrast.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/contrast.cxx b/test/contrast.cxx
index 5619635c4..cdc131a82 100644
--- a/test/contrast.cxx
+++ b/test/contrast.cxx
@@ -26,7 +26,7 @@
#include <FL/Fl_Color_Chooser.H>
#include <FL/Fl_Output.H>
#include <FL/Fl_Hor_Value_Slider.H>
-#include <FL/Fl_Simple_Terminal.H>
+#include <FL/Fl_Terminal.H>
#include <FL/fl_draw.H>
#include <math.h>
@@ -93,7 +93,7 @@ public:
// global variables
-Fl_Simple_Terminal *term = 0;
+Fl_Terminal *term = 0;
double g_lfg; // perceived lightness of foreground color
double g_lbg; // perceived lightness of background color
@@ -428,9 +428,9 @@ int main(int argc, char **argv) {
int ttw = window.w() - 20;
int tth = window.h() - tty - 10;
- term = new Fl_Simple_Terminal(ttx, tty, ttw, tth);
+ term = new Fl_Terminal(ttx, tty, ttw, tth);
term->color(FL_WHITE);
- term->textcolor(FL_BLACK);
+ term->textfgcolor(FL_BLACK);
term->textsize(13);
term->printf("FLTK fl_contrast() test program with different contrast algorithms, version %s\n", version);