Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
410 B
1
Indexable
Never
void VGA_BlitClip(int x, int y, byte *data, int a, int b, int width, int height, int total_width, word where)
{
	if (x < 0) {
		a -= x;
		width += x;
		x = 0;
	}
	else if (x + width > 319) {
		width -= x + width - 320;
	}

	if (y < 0) {
		b -= y;
		height += y;
		y = 0;
	}
	else if (y + height > 199) {
		height -= y + height - 200;
	}

	VGA_BlitRegion(x, y, data, a, b, width, height, total_width, where);
}
Leave a Comment