From 28eeacfd7fb2373cc6895ac5a40be671f8ec5cdc Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Wed, 21 Jan 2009 22:20:03 +0000 Subject: [PATCH] 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 --- src/add-ons/accelerants/intel_extreme/cursor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/add-ons/accelerants/intel_extreme/cursor.cpp b/src/add-ons/accelerants/intel_extreme/cursor.cpp index 489f7f06d6..793c96d191 100644 --- a/src/add-ons/accelerants/intel_extreme/cursor.cpp +++ b/src/add-ons/accelerants/intel_extreme/cursor.cpp @@ -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