Commit 8b2543b7 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Always use software to draw bitmaps to bitmaps.

parent 42472477
...@@ -1996,16 +1996,9 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image ...@@ -1996,16 +1996,9 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
return NotImplemented; return NotImplemented;
if (imageAttributes || if (imageAttributes ||
(graphics->image && graphics->image->type == ImageTypeBitmap) ||
ptf[1].Y != ptf[0].Y || ptf[2].X != ptf[0].X) ptf[1].Y != ptf[0].Y || ptf[2].X != ptf[0].X)
use_software = 1; use_software = 1;
else if (graphics->image && graphics->image->type == ImageTypeBitmap)
{
GpBitmap *dst_bitmap = (GpBitmap*)graphics->image;
if (!(dst_bitmap->format == PixelFormat16bppRGB555 ||
dst_bitmap->format == PixelFormat24bppRGB ||
dst_bitmap->format == PixelFormat32bppRGB))
use_software = 1;
}
if (use_software) if (use_software)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment