Ooops, cursor base address register should be the last written, as it's the trigger register.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28980 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2009-01-21 22:20:03 +00:00
parent 65641d7f8d
commit 28eeacfd7f

View File

@ -49,13 +49,12 @@ intel_set_cursor_shape(uint16 width, uint16 height, uint16 hotX, uint16 hotY,
gInfo->shared_info->cursor_format = CURSOR_FORMAT_2_COLORS;
write32(INTEL_CURSOR_CONTROL, CURSOR_ENABLED | gInfo->shared_info->cursor_format);
write32(INTEL_CURSOR_SIZE, height << 12 | width);
write32(INTEL_CURSOR_BASE, (uint32)gInfo->shared_info->physical_graphics_memory
+ gInfo->shared_info->cursor_buffer_offset);
// cursor shape is now set: enable it again
write32(INTEL_CURSOR_CONTROL, CURSOR_ENABLED | gInfo->shared_info->cursor_format);
// changing the hot point changes the cursor position, too
if (hotX != gInfo->shared_info->cursor_hot_x