diff Weather.cpp @ 2076:0d535449c04f

Слияние
author Ritor1
date Wed, 04 Dec 2013 15:40:38 +0600
parents 259df09dfb50
children f6e59446c133
line wrap: on
line diff
--- a/Weather.cpp	Wed Dec 04 15:40:27 2013 +0600
+++ b/Weather.cpp	Wed Dec 04 15:40:38 2013 +0600
@@ -52,7 +52,9 @@
   v25 = viewparams->uScreen_BttmR_X;
   v28 = viewparams->uScreen_topL_Y;
   v31 = 0;
-  v1 = pRenderer->pTargetSurface;
+  if (!FORCE_16_BITS)
+    __debugbreak(); // function expects 16bit target buffer, will fail otherwise
+  v1 = (unsigned __int16 *)pRenderer->pTargetSurface;
   v29 = viewparams->uScreen_topL_X;
   v23 = viewparams->uScreen_BttmR_Y;
   v24 = viewparams->uScreen_BttmR_X - viewparams->uScreen_topL_X;