summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2022-01-16 16:55:25 -0800
committerGreg Ercolano <erco@seriss.com>2022-01-16 16:59:49 -0800
commit196430b016fd739258d49a8963a47be4603b42e1 (patch)
tree676f2ffaec5b8cd16ce6c0e8119de152dac3bc42 /examples
parent313212b4975b40c5a9af0c3ffe7afefcc17b8bd2 (diff)
Issue #358 cont'd: Fl_Cairo_Window coord system docs
Elaborated on Fl_Cairo_Window's use of FLTK style coordinates, and how this differs from cairo's default native normalized coordinate system, and shows how to switch from one to the other. Also, small comment fix to the cairo example regarding the "X" color.
Diffstat (limited to 'examples')
-rw-r--r--examples/cairo-draw-x.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cairo-draw-x.cxx b/examples/cairo-draw-x.cxx
index 8129e607d..eb889fb4c 100644
--- a/examples/cairo-draw-x.cxx
+++ b/examples/cairo-draw-x.cxx
@@ -24,7 +24,7 @@ static void my_cairo_draw_cb(Fl_Cairo_Window *window, cairo_t *cr) {
const double xmax = (window->w() - 1);
const double ymax = (window->h() - 1);
- // Draw green "X"
+ // Draw orange "X"
// Draws an X to four corners of resizable window.
// See Fl_Cairo_Window docs for more info.
//