reactos/subsystems/win32/win32k
Timo Kreuzer a3214996fc [WIN32K]
Rewrite the bitmap API. There were a lot of bugs. NtGdiCreateBitmap allowed a negative height, leading to either topdown or bottomup bitmaps, a behaviour that Windows doesn't have. The function copied the bitmap bits directly from the caller to the bitmap using RtlCopyMemory, ignoring different scanline length and direction (resulting in bitmaps being upside down), not SEH protected. This function (IntSetBitmapBits) is replaced by a better solution UnsafeSetBitmapBits, that takes these things into account. The name is chosen to give a hint that the function can/should be SEH protected. IntSetBitmapBits is still there, as its retarded behaviour is actually required in some places. There were also IntCreateBitmap and IntGdiCreateBitmap, now both being replaced by GreCreateBitmap. The code that set the palette is removed, as it's already done in SURFACE_AllocSurface, here gpalRGB is replaced with gpalBGR, fixing some inverted color issues. The alignment correction in SURFACE_bSetBitmapBits is reapplied, now that the callers are behaving as they are supposed to do.

svn path=/branches/reactos-yarotows/; revision=47641
2010-06-06 22:01:41 +00:00
..
dib Sync with trunk (r47116), hopefully without breaking anything. 2010-05-07 07:41:13 +00:00
eng [WIN32K] 2010-06-06 22:01:41 +00:00
include [WIN32K] 2010-06-06 22:01:41 +00:00
ldr Commit the stuff. Lots of changes. I'll write a proper list of changes when it's done. 2010-01-30 21:12:42 +00:00
main Sync with trunk r47367 2010-05-26 23:20:20 +00:00
misc Sync with trunk (r47116), hopefully without breaking anything. 2010-05-07 07:41:13 +00:00
ntddraw Sync with trunk (r47116), hopefully without breaking anything. 2010-05-07 07:41:13 +00:00
ntuser [WIN32K] UserDrawIconEx 2010-05-31 14:19:37 +00:00
objects [WIN32K] 2010-06-06 22:01:41 +00:00
stubs Sync with trunk (r47116), hopefully without breaking anything. 2010-05-07 07:41:13 +00:00
pch.h Sync with trunk (r47116), hopefully without breaking anything. 2010-05-07 07:41:13 +00:00
TODO.txt Update TODO.txt 2010-04-22 19:14:15 +00:00
w32ksvc.db Hopefully create a branch and not destroy the svn repository. 2010-01-23 23:25:04 +00:00
win32k.h Sync with trunk (r47116), hopefully without breaking anything. 2010-05-07 07:41:13 +00:00
win32k.pspec Hopefully create a branch and not destroy the svn repository. 2010-01-23 23:25:04 +00:00
win32k.rbuild [WIN32K] 2010-06-06 07:02:15 +00:00
win32k.rc Hopefully create a branch and not destroy the svn repository. 2010-01-23 23:25:04 +00:00