278 : struct
279 {
280 if (pSurface == null)
281 {
282 return;
283 }
284 fixed (T* ptr2 = &data[dataIndex])
285 {
286 byte* ptr = (byte*)pData;
287 byte* ptr3 = (byte*)ptr2;
290 int num3 = *(int*)pSurface;
291 _D3DFORMAT d3DFORMAT = (_D3DFORMAT)num3;
292 int num4 = ((d3DFORMAT == (_D3DFORMAT)827611204 || d3DFORMAT == (_D3DFORMAT)844388420 || d3DFORMAT == (_D3DFORMAT)861165636 || d3DFORMAT == (_D3DFORMAT)877942852 || d3DFORMAT == (_D3DFORMAT)894720068) ? 1 : 0);
293 if ((byte)num4 != 0)
294 {
295 dwLockWidth = dwLockWidth + 3 >> 2;
296 dwLockHeight = dwLockHeight + 3 >> 2;
297 num2 = ((num3 == 827611204) ? 8u : 16u);
298 }
299 uint num5 = num2 * num * dwLockWidth;
300 if (0 >= dwLockHeight)
301 {
302 return;
303 }
304 uint num6 = dwLockHeight;
305 do
306 {
307 if (*(int*)pSurface == 21)
308 {
309 if (isSetting)
310 {
312 }
313 else
314 {
316 }
317 }
318 else if (isSetting)
319 {
320 _003CModule_003E.memcpy_s(ptr, num5, ptr3, num5);
321 }
322 else
323 {
324 _003CModule_003E.memcpy_s(ptr3, num5, ptr, num5);
325 }
326 ptr = pitch + ptr;
327 ptr3 = (int)num5 + ptr3;
328 num6--;
329 }
330 while (num6 != 0);
331 }
332 }
static unsafe void SwapBgr(void *pDest, void *pSrc, uint dwSize)
static byte GetExpectedByteSizeFromFormat(_D3DFORMAT format)