removed intermediate variables, and added comments
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17033 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -79,8 +79,6 @@ ServerCursor::ServerCursor(const uint8* data)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
fInitialized = true;
|
fInitialized = true;
|
||||||
uint32 black = 0xff000000;
|
|
||||||
uint32 white = 0xffffffff;
|
|
||||||
|
|
||||||
uint16* cursorBits = (uint16*)(data + 4);
|
uint16* cursorBits = (uint16*)(data + 4);
|
||||||
uint16* transparencyBits = (uint16*)(data + 36);
|
uint16* transparencyBits = (uint16*)(data + 36);
|
||||||
@@ -99,13 +97,12 @@ ServerCursor::ServerCursor(const uint8* data)
|
|||||||
// for each column in each row of cursor data
|
// for each column in each row of cursor data
|
||||||
for (int32 i = 0; i < 16; i++, mask >>= 1) {
|
for (int32 i = 0; i < 16; i++, mask >>= 1) {
|
||||||
// Get the values and dump them to the bitmap
|
// Get the values and dump them to the bitmap
|
||||||
uint16 cursorBit = cursorLine & mask;
|
if (cursorLine & mask)
|
||||||
if (cursorBit)
|
bits[i] = 0xff000000; // black
|
||||||
bits[i] = black;
|
|
||||||
else if (transparencyLine & mask)
|
else if (transparencyLine & mask)
|
||||||
bits[i] = white;
|
bits[i] = 0xffffffff; // white
|
||||||
else
|
else
|
||||||
bits[i] = 0x00000000;
|
bits[i] = 0x00000000; // transparent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user