diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-03-25 15:31:30 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-03-25 15:31:30 +0100 |
| commit | 9aa62f449282d84a379e7e26e2e2eac13a112136 (patch) | |
| tree | d8555a4661cc7e99548a2dccdb964dfba145aeda /src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H | |
| parent | 9d7e680925b60648354c4fb5f3fe2e09d9d9e3b6 (diff) | |
Add Fl_Cairo_Graphics_Driver::focus_rect() override
This allows to bypass what looks like a Cairo bug:
FLTK_SCALING_FACTOR=1.7 bin/test/tabs
click on tab2
---> crash
But no crash with other scaling factor values (e.g., 1.8).
Diffstat (limited to 'src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H')
| -rw-r--r-- | src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H index c6fa15403..c2a7d4c54 100644 --- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H +++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H @@ -197,6 +197,7 @@ public: void restore_scale(float) FL_OVERRIDE; void antialias(int state) FL_OVERRIDE; int antialias() FL_OVERRIDE; + void focus_rect(int x, int y, int w, int h) FL_OVERRIDE; }; #endif // FL_CAIRO_GRAPHICS_DRIVER_H |
