MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / CopyRect

Method CopyRect

rEFIt_UEFI/libeg/XImage.cpp:692–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690 CopyRect(*Image, 0, 0);
691}
692void XImage::CopyRect(const XImage& Image, INTN XPos, INTN YPos)
693{
694 for (INTN y = 0; y < GetHeight() && (y + YPos) < Image.GetHeight(); ++y) {
695 for (INTN x = 0; x < GetWidth() && (x + XPos) < Image.GetWidth(); ++x) {
696 PixelData[y * Width + x] = Image.GetPixel(x + XPos, y + YPos);
697 }
698 }
699}
700
701/*
702 * copy rect InputRect from the input Image and place to OwnRect in this image

Callers 7

DrawMenuTextMethod · 0.80
ScrollingBarMethod · 0.80
DrawMainMenuLabelMethod · 0.80
DrawMainMenuEntryMethod · 0.80
DrawOnBackMethod · 0.80
ClearScreenMethod · 0.80
FillRectAreaOfScreenMethod · 0.80

Calls 3

GetHeightMethod · 0.80
GetWidthMethod · 0.80
GetWidthFunction · 0.50

Tested by

no test coverage detected