* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: misc.c,v 1.6 2004/05/10 17:07:17 weiden Exp $ */
+/* $Id: misc.c,v 1.7 2004/06/24 19:43:48 gvg Exp $ */
#include <w32k.h>
BOOL STDCALL
Width = DIB_GetDIBWidthBytes(BitmapSize.cx, BitsPerFormat(DestObj->iBitmapFormat));
EnterLeave->OutputBitmap = EngCreateBitmap(BitmapSize, Width,
DestObj->iBitmapFormat,
- BMF_NOZEROINIT, NULL);
+ BMF_TOPDOWN | BMF_NOZEROINIT, NULL);
*OutputObj = (SURFOBJ *) AccessUserObject((ULONG) EnterLeave->OutputBitmap);
EnterLeave->DestRect.left = 0;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: mouse.c,v 1.72 2004/06/20 12:34:17 navaraf Exp $
+/* $Id: mouse.c,v 1.73 2004/06/24 19:43:48 gvg Exp $
*
* PROJECT: ReactOS kernel
* PURPOSE: Mouse
memcpy(Bits, psoColor->pvBits, psoColor->cjBits);
ppdev->PointerColorSurface = (HSURF)EngCreateBitmap(Size,
- psoColor->lDelta, psoColor->iBitmapFormat, 0, Bits);
+ psoColor->lDelta, psoColor->iBitmapFormat, BMF_TOPDOWN, Bits);
}
else
{
memcpy(Bits, psoMask->pvBits, psoMask->cjBits);
ppdev->PointerMaskSurface = (HSURF)EngCreateBitmap(Size,
- psoMask->lDelta, psoMask->iBitmapFormat, 0, Bits);
+ psoMask->lDelta, psoMask->iBitmapFormat, BMF_TOPDOWN, Bits);
}
/*
}
ppdev->PointerSaveSurface = (HSURF)EngCreateBitmap(
- Size, lDelta, pso->iBitmapFormat, BMF_NOZEROINIT, NULL);
+ Size, lDelta, pso->iBitmapFormat, BMF_TOPDOWN | BMF_NOZEROINIT, NULL);
}
IntShowMousePointer(ppdev, pso);
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: objconv.c,v 1.19 2004/06/23 07:31:22 gvg Exp $ */
+/* $Id: objconv.c,v 1.20 2004/06/24 19:43:49 gvg Exp $ */
#include <w32k.h>
HBITMAP FASTCALL BitmapToSurf(PBITMAPOBJ BitmapObj, HDEV GDIDevice)
{
BitmapHandle = EngCreateBitmap(Size, BitmapObj->dib->dsBm.bmWidthBytes,
BitmapFormat(BitmapObj->dib->dsBm.bmBitsPixel, BI_RGB),
- BMF_TOPDOWN, BitmapObj->dib->dsBm.bmBits);
+ BitmapObj->dib->dsBmih.biHeight < 0 ? BMF_TOPDOWN : 0,
+ BitmapObj->dib->dsBm.bmBits);
}
else
{