gfx.c
changeset 1056 24579058c082
parent 1009 75140dc68759
child 1093 4fdc46eaf423
equal deleted inserted replaced
1055:cc4f60cc9102 1056:24579058c082
    21 {
    21 {
    22 	byte *dp = (byte*)d;
    22 	byte *dp = (byte*)d;
    23 	byte *sp = (byte*)s;
    23 	byte *sp = (byte*)s;
    24 
    24 
    25 	assert(h >= 0);
    25 	assert(h >= 0);
    26 	if (h != 0) do {
    26 	for (; h != 0; --h) {
    27 		memcpy(dp, sp, w);
    27 		memcpy(dp, sp, w);
    28 		dp += dpitch;
    28 		dp += dpitch;
    29 		sp += spitch;
    29 		sp += spitch;
    30 	} while (--h);
    30 	}
    31 }
    31 }
    32 
    32 
    33 
    33 
    34 void GfxScroll(int left, int top, int width, int height, int xo, int yo) {
    34 void GfxScroll(int left, int top, int width, int height, int xo, int yo) {
    35 	byte *src, *dst;
    35 	byte *src, *dst;