wtf
This commit is contained in:
+3
-3
@@ -191,10 +191,10 @@ void shiftGivenRectangleRight(unsigned short x1, unsigned short y1, unsigned sh
|
||||
|
||||
for (unsigned short i = 0; i < height; i++)
|
||||
{
|
||||
for (unsigned short j = 0; j < width + shift_by; j++)
|
||||
for (short j = width + shift_by - 1; j >= 0; j--)
|
||||
{
|
||||
setPixel(x1 + j - shift_by, y1 - 1 , getPixelColor(x1 + j, y1 + i));
|
||||
setPixel(x1 + j, y1 + i, 0x00000000);
|
||||
setPixel(x1 + j, y1 + i, getPixelColor(x1 + j - shift_by, y1 + i));
|
||||
setPixel(x1 + j - shift_by, y1 + i, 0x00000000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user