From 2530120d7d084f1ffbb9331e925153a3bcb15b92 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 24 Mar 2016 22:26:13 +0000 Subject: Rewrite Fl::handle_(int e, Fl_Window* window) and Fl_Widget::damage() to remove their platform dependent parts git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11419 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/drivers/GDI') diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx index 45144c9a1..15defb9eb 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx @@ -144,6 +144,12 @@ void Fl_Translated_GDI_Graphics_Driver::untranslate_all() { SetWindowOrgEx((HDC)gc(), origins[depth].x, origins[depth].y, NULL); } +void Fl_Graphics_Driver::add_rectangle_to_region(Fl_Region r, int X, int Y, int W, int H) { + Fl_Region R = XRectangleRegion(X, Y, W, H); + CombineRgn(r, r, R, RGN_OR); + XDestroyRegion(R); +} + // // End of "$Id$". // -- cgit v1.2.3