- EngLockSurface and mouse pointer in display driver
- Posted by Mase on May 20th, 2008
Hi.
I have a problem with the mouse pointer in my display driver. In DrvEscape I
call EngLockSurface on a device bitmap to be able to cache the data in
pvBits. Within the preceding call to DrvCopyBits the mouse pointer was
rendered to exactly this device bitmap. but in the locked bitmap in DrvEscape
the mouse pointer is not present. the wallpaper, a window, anything but the
pointer is on the surface. there was no call to any drawing function in the
driver whereby the pointer could be removed. so my question: where is the
pointer gone? any idea?
thanks, mase
- Posted by Mase on May 21st, 2008
Hello again.
the problem with my mouse pointer has been "solved". I found out two things:
1: I don't have to lock the surface from which I want to copy the data
because it is passed into DrvEscape()...
2:
I found out that the mouse pointer is still on the surface but getting the
data correctly out of pvBits failt. In DrvEscape() I use EngCopyBits() to
copy a part of the surface onto another surface. both surfaces are created by
me in DrvEnableSurface() and their type is "STYPE_BITMAP". I don't know why,
but in DrvEscape() the type of the passed in surface is not "STYPE_BITMAP"
but "STYPE_DEVICE". If I set the type back to "STYPE_BITMAP" in DrvEscape()
everything works fine...
mase
- No mouse cursor when in MCE (display pointer trails are off) (Windows Media Center Edition) by Frustrated in Nebraska
- mouse pointer freezes sporadically, by single left clicking or tapping esc, the mouse pointer is freed up for use only to re-occur within minutes. (Microsoft Windows) by Banana
- mouse pointer freezes sporadically/consistently, by single left clicking or tapping esc, the mouse pointer is freed up for use only to re-occur within minutes. (Help and Support) by Banana
- Touchpad (mouse) driver with adjustable pointer speed (not acceleration)??? (Drivers) by mike
- Mouse Pointer position in a Mirror Driver. (Drivers) by Mark Kressin

