equal
deleted
inserted
replaced
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; |