make the block more dynamic
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36921 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -721,14 +721,14 @@ VideoProducer::FrameGenerator()
|
|||||||
h->u.raw_video.line_count = fConnectedFormat.display.line_count;
|
h->u.raw_video.line_count = fConnectedFormat.display.line_count;
|
||||||
|
|
||||||
if (fColor == 0xff000000) {
|
if (fColor == 0xff000000) {
|
||||||
// display a purple block
|
// display a gray block that moves
|
||||||
uint32 *p = (uint32 *)buffer->Data();
|
uint32 *p = (uint32 *)buffer->Data();
|
||||||
for (int y = 0; y < (int)fConnectedFormat.display.line_count; y++)
|
for (int y = 0; y < (int)fConnectedFormat.display.line_count; y++)
|
||||||
for (int x = 0; x < (int)fConnectedFormat.display.line_width; x++) {
|
for (int x = 0; x < (int)fConnectedFormat.display.line_width; x++) {
|
||||||
if (x > 120 && x < 280 && y > 60 && y < 100) {
|
if (x > (fFrame & 0xff) && x < (fFrame & 0xff) + 60 && y > 90 && y < 150) {
|
||||||
*(p++) = 0xffff00ff;
|
*(p++) = 0xff777777;
|
||||||
} else {
|
} else {
|
||||||
*(p++) = 0xff000000;
|
*(p++) = 0x00000000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user