| 657 | } |
| 658 | |
| 659 | void XImage::DummyImage(IN UINTN PixelSize) |
| 660 | { |
| 661 | |
| 662 | UINTN LineOffset; |
| 663 | CHAR8 *Ptr, *YPtr; |
| 664 | |
| 665 | setSizeInPixels(PixelSize, PixelSize); |
| 666 | |
| 667 | LineOffset = PixelSize * 4; |
| 668 | |
| 669 | YPtr = (CHAR8 *)GetPixelPtr(0,0) + ((PixelSize - 32) >> 1) * (LineOffset + 4); |
| 670 | for (UINTN y = 0; y < 32; y++) { |
| 671 | Ptr = YPtr; |
| 672 | for (UINTN x = 0; x < 32; x++) { |
| 673 | if (((x + y) % 12) < 6) { |
| 674 | *Ptr++ = 0; |
| 675 | *Ptr++ = 0; |
| 676 | *Ptr++ = 0; |
| 677 | } else { |
| 678 | *Ptr++ = 0; |
| 679 | *Ptr++ = ~0; //yellow |
| 680 | *Ptr++ = ~0; |
| 681 | } |
| 682 | *Ptr++ = ~111; //opacity |
| 683 | } |
| 684 | YPtr += LineOffset; |
| 685 | } |
| 686 | } |
| 687 | |
| 688 | void XImage::Copy(XImage* Image) |
| 689 | { |
no outgoing calls
no test coverage detected