Untitled
unknown
plain_text
a year ago
410 B
3
Indexable
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); }
Editor is loading...
Leave a Comment