Mercurial > mm7
comparison Weather.cpp @ 2153:d28d3c006077
Some Render decoupling.
author | Nomad |
---|---|
date | Thu, 09 Jan 2014 02:34:20 +0200 |
parents | f6e59446c133 |
children | aff7a7b072b7 |
comparison
equal
deleted
inserted
replaced
2152:d44b7775fc06 | 2153:d28d3c006077 |
---|---|
14 | 14 |
15 | 15 |
16 //----- (004C2AA6) -------------------------------------------------------- | 16 //----- (004C2AA6) -------------------------------------------------------- |
17 int Weather::DrawSnow() | 17 int Weather::DrawSnow() |
18 { | 18 { |
19 unsigned __int16 *v1; // edi@1 | |
20 | 19 |
21 // if (!FORCE_16_BITS) | 20 // if (!FORCE_16_BITS) |
22 // __debugbreak(); // function expects 16bit target buffer, will fail otherwise | 21 // __debugbreak(); // function expects 16bit target buffer, will fail otherwise |
23 v1 = (unsigned __int16 *)pRenderer->pTargetSurface; | |
24 for ( uint i = 0; i < 700; ++i ) | 22 for ( uint i = 0; i < 700; ++i ) |
25 { | 23 { |
26 int x = 2 * i; | 24 int x = 2 * i; |
27 int y = 2 * i + 1; | 25 int y = 2 * i + 1; |
28 this->Screen_Coord[x] += rand() % 3 + 1; | 26 this->Screen_Coord[x] += rand() % 3 + 1; |