summaryrefslogtreecommitdiff
path: root/src/drivers/GDI
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-12-21 14:03:04 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-12-21 14:03:04 +0100
commit76a2c95f0715845432dab89984bb28a5dbfa3ebc (patch)
tree33292a5a81c3d51dbed86b3facd344c859b19421 /src/drivers/GDI
parent39846392702607ec014cb2dd450c3c6ba86827a6 (diff)
Fix a typo, trailing whitespace, and dependencies
Diffstat (limited to 'src/drivers/GDI')
-rw-r--r--src/drivers/GDI/Fl_GDI_Image_Surface_Driver.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Image_Surface_Driver.cxx b/src/drivers/GDI/Fl_GDI_Image_Surface_Driver.cxx
index 7e1c2f24e..a14524ee2 100644
--- a/src/drivers/GDI/Fl_GDI_Image_Surface_Driver.cxx
+++ b/src/drivers/GDI/Fl_GDI_Image_Surface_Driver.cxx
@@ -96,7 +96,7 @@ Fl_RGB_Image* Fl_GDI_Image_Surface_Driver::image()
bmi.bmiHeader.biBitCount = 24;
GetDIBits(gc, (HBITMAP)offscreen, 0, H,
dib_src, &bmi, DIB_RGB_COLORS);
-
+
// draw above the secondary offscreen the main offscreen masked by shape_data_->mask
GdiFlush();
Fl_Image_Surface_Driver::copy_with_mask(shape_data_->mask, shape_data_->vBits, dib_src, ((3*W+3)/4) * 4, true);
@@ -141,9 +141,9 @@ void Fl_GDI_Image_Surface_Driver::mask(const Fl_RGB_Image *mask) {
GetDIBits(gc, (HBITMAP)offscreen, 0, 0, NULL, &bmi, DIB_RGB_COLORS);
int W = bmi.bmiHeader.biWidth;
int H = bmi.bmiHeader.biHeight;
-
+
shape_data_->mask = Fl_Image_Surface_Driver::RGB3_to_RGB1(mask, W, H);
-
+
// duplicate current offscreen content to new offscreen
int line_size = ((3*W+3)/4) * 4;
uchar *dib = new uchar[line_size * H]; // create temporary buffer to read DIB
@@ -151,11 +151,11 @@ void Fl_GDI_Image_Surface_Driver::mask(const Fl_RGB_Image *mask) {
bmi.bmiHeader.biHeight = H;
bmi.bmiHeader.biCompression = BI_RGB;
bmi.bmiHeader.biBitCount = 24;
-
+
GetDIBits(gc, (HBITMAP)offscreen, 0, H, dib, &bmi, DIB_RGB_COLORS);
-
+
HDC background_gc = CreateCompatibleDC(gc);
- shape_data_->background =
+ shape_data_->background =
CreateDIBSection(background_gc, &bmi, DIB_RGB_COLORS,
(void**)&shape_data_->vBits, NULL, 0);
if (!shape_data_->background) {