same for cursor clear and define functions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16112 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -765,7 +765,7 @@ status_t nv_crtc_set_display_start(uint32 startadd,uint8 bpp)
|
|||||||
status_t nv_crtc_cursor_init()
|
status_t nv_crtc_cursor_init()
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
uint32 * fb;
|
vuint32 * fb;
|
||||||
/* cursor bitmap will be stored at the start of the framebuffer */
|
/* cursor bitmap will be stored at the start of the framebuffer */
|
||||||
const uint32 curadd = 0;
|
const uint32 curadd = 0;
|
||||||
|
|
||||||
@@ -799,7 +799,7 @@ status_t nv_crtc_cursor_init()
|
|||||||
/* set cursor colour: not needed because of direct nature of cursor bitmap. */
|
/* set cursor colour: not needed because of direct nature of cursor bitmap. */
|
||||||
|
|
||||||
/*clear cursor*/
|
/*clear cursor*/
|
||||||
fb = (uint32 *) si->framebuffer + curadd;
|
fb = (vuint32 *) si->framebuffer + curadd;
|
||||||
for (i=0;i<(2048/4);i++)
|
for (i=0;i<(2048/4);i++)
|
||||||
{
|
{
|
||||||
fb[i]=0;
|
fb[i]=0;
|
||||||
@@ -860,11 +860,11 @@ status_t nv_crtc_cursor_define(uint8* andMask,uint8* xorMask)
|
|||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
uint8 b;
|
uint8 b;
|
||||||
uint16 *cursor;
|
vuint16 *cursor;
|
||||||
uint16 pixel;
|
uint16 pixel;
|
||||||
|
|
||||||
/* get a pointer to the cursor */
|
/* get a pointer to the cursor */
|
||||||
cursor = (uint16*) si->framebuffer;
|
cursor = (vuint16*) si->framebuffer;
|
||||||
|
|
||||||
/* draw the cursor */
|
/* draw the cursor */
|
||||||
/* (Nvidia cards have a RGB15 direct color cursor bitmap, bit #16 is transparancy) */
|
/* (Nvidia cards have a RGB15 direct color cursor bitmap, bit #16 is transparancy) */
|
||||||
|
|||||||
@@ -725,7 +725,7 @@ status_t nv_crtc2_set_display_start(uint32 startadd,uint8 bpp)
|
|||||||
status_t nv_crtc2_cursor_init()
|
status_t nv_crtc2_cursor_init()
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
uint32 * fb;
|
vuint32 * fb;
|
||||||
/* cursor bitmap will be stored at the start of the framebuffer */
|
/* cursor bitmap will be stored at the start of the framebuffer */
|
||||||
const uint32 curadd = 0;
|
const uint32 curadd = 0;
|
||||||
|
|
||||||
@@ -759,7 +759,7 @@ status_t nv_crtc2_cursor_init()
|
|||||||
/* set cursor colour: not needed because of direct nature of cursor bitmap. */
|
/* set cursor colour: not needed because of direct nature of cursor bitmap. */
|
||||||
|
|
||||||
/*clear cursor*/
|
/*clear cursor*/
|
||||||
fb = (uint32 *) si->framebuffer + curadd;
|
fb = (vuint32 *) si->framebuffer + curadd;
|
||||||
for (i=0;i<(2048/4);i++)
|
for (i=0;i<(2048/4);i++)
|
||||||
{
|
{
|
||||||
fb[i]=0;
|
fb[i]=0;
|
||||||
@@ -818,11 +818,11 @@ status_t nv_crtc2_cursor_define(uint8* andMask,uint8* xorMask)
|
|||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
uint8 b;
|
uint8 b;
|
||||||
uint16 *cursor;
|
vuint16 *cursor;
|
||||||
uint16 pixel;
|
uint16 pixel;
|
||||||
|
|
||||||
/* get a pointer to the cursor */
|
/* get a pointer to the cursor */
|
||||||
cursor = (uint16*) si->framebuffer;
|
cursor = (vuint16*) si->framebuffer;
|
||||||
|
|
||||||
/* draw the cursor */
|
/* draw the cursor */
|
||||||
/* (Nvidia cards have a RGB15 direct color cursor bitmap, bit #16 is transparancy) */
|
/* (Nvidia cards have a RGB15 direct color cursor bitmap, bit #16 is transparancy) */
|
||||||
|
|||||||
Reference in New Issue
Block a user