Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-09

Lazarus forces HALFTONE StretchBldMode in StretchMaskBlt/for alpha-enabled DC (and doesn't for non-alpha)

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Flávio Etrusco

Hello,
while looking into bug http://bugs.freepascal.org/view.php?id=20226 I realized that Lazarus has the following call in
TWin32WidgetSet.StretchMaskBlt:

  Windows.SetStretchBltMode(DestDC, STRETCH_HALFTONE);

I wonder whether it should be forced at all, but if it does, I think it should have the same value for both alpha/masked and non-masked? Also, I would think this change was meant for better default behavior of drawing bitmaps to controls. Could it just be initialized in e.g. TControlCanvas.CreateHandle?

Best regards,
Fl?vio

Reply by email