12 #include "../stdafx.h"
15 #include "../safeguards.h"
19 return (uint32 *)video + x + y * _screen.pitch;
33 for (
int i = width; i > 0; i--) {
37 video = (uint32 *)video + _screen.pitch;
43 uint32 *dst = (uint32 *)video;
44 const uint32 *usrc = (
const uint32 *)src;
46 for (; height > 0; height--) {
47 memcpy(dst, usrc, width *
sizeof(uint32));
55 uint32 *udst = (uint32 *)dst;
56 const uint32 *src = (
const uint32 *)video;
58 for (; height > 0; height--) {
59 memcpy(udst, src, width *
sizeof(uint32));
67 uint32 *udst = (uint32 *)dst;
68 const uint32 *src = (
const uint32 *)video;
70 for (; height > 0; height--) {
71 memcpy(udst, src, width *
sizeof(uint32));
84 dst = (uint32 *)video + left + (top + height - 1) * _screen.pitch;
85 src = dst - scroll_y * _screen.pitch;
102 for (
int h = height; h > 0; h--) {
103 memcpy(dst, src, width *
sizeof(uint32));
104 src -= _screen.pitch;
105 dst -= _screen.pitch;
109 dst = (uint32 *)video + left + top * _screen.pitch;
110 src = dst - scroll_y * _screen.pitch;
128 for (
int h = height; h > 0; h--) {
129 memmove(dst, src, width *
sizeof(uint32));
130 src += _screen.pitch;
131 dst += _screen.pitch;
138 return width * height *
sizeof(uint32);