From 8f6542aa68b292ea756da02cd2e31bb342f3604d Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 29 Nov 2012 12:49:34 -0500 Subject: [PATCH] Fix build with FAKE_HARDWARE_CURSOR_SUPPORT turned on by adding the const specifier to the uint8* parameters of the prototypes of the vesa_set_cursor_shape and vesa_set_cursor_bitmap functions. Thanks looncraz for pointing this out. --- src/add-ons/accelerants/vesa/accelerant_protos.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/add-ons/accelerants/vesa/accelerant_protos.h b/src/add-ons/accelerants/vesa/accelerant_protos.h index 81c566c69c..788c5cc7bd 100644 --- a/src/add-ons/accelerants/vesa/accelerant_protos.h +++ b/src/add-ons/accelerants/vesa/accelerant_protos.h @@ -46,9 +46,10 @@ status_t vesa_set_dpms_mode(uint32 dpmsFlags); // cursor status_t vesa_set_cursor_shape(uint16 width, uint16 height, uint16 hotX, - uint16 hotY, uint8 *andMask, uint8 *xorMask); + uint16 hotY, const uint8 *andMask, const uint8 *xorMask); status_t vesa_set_cursor_bitmap(uint16 width, uint16 height, uint16 hotX, - uint16 hotY, uint32 colorSpace, uint16 bytesPerRow, uint8* bitmapData); + uint16 hotY, color_space colorSpace, uint16 bytesPerRow, + const uint8* bitmapData); void vesa_move_cursor(uint16 x, uint16 y); void vesa_show_cursor(bool is_visible);