Mercurial > mm7
comparison Viewport.cpp @ 2069:259df09dfb50
32bits almost there
author | Nomad |
---|---|
date | Tue, 03 Dec 2013 20:18:17 +0200 |
parents | 7a9477135943 |
children | 3920278a2905 |
comparison
equal
deleted
inserted
replaced
2061:b2a434d65344 | 2069:259df09dfb50 |
---|---|
52 this->uScreen_BR_X = br_x; | 52 this->uScreen_BR_X = br_x; |
53 this->uScreen_BR_Y = br_y; | 53 this->uScreen_BR_Y = br_y; |
54 this->uScreenWidth = br_x - tl_x + 1; | 54 this->uScreenWidth = br_x - tl_x + 1; |
55 this->uScreenHeight = br_y - tl_y + 1; | 55 this->uScreenHeight = br_y - tl_y + 1; |
56 this->uScreenCenterX = (signed int)(br_x + tl_x) /2; | 56 this->uScreenCenterX = (signed int)(br_x + tl_x) /2; |
57 if ( pRenderer->pRenderD3D == 0 ) | 57 //if ( pRenderer->pRenderD3D == 0 ) |
58 this->uScreenCenterY = this->uScreen_BR_Y - fixpoint_mul(field_30, uScreenHeight); | 58 // this->uScreenCenterY = this->uScreen_BR_Y - fixpoint_mul(field_30, uScreenHeight); |
59 else | 59 //else |
60 this->uScreenCenterY = (br_y + tl_y)/2; | 60 this->uScreenCenterY = (br_y + tl_y)/2; |
61 SetViewport(this->uScreen_TL_X, this->uScreen_TL_Y, this->uScreen_BR_X, this->uScreen_BR_Y); | 61 SetViewport(this->uScreen_TL_X, this->uScreen_TL_Y, this->uScreen_BR_X, this->uScreen_BR_Y); |
62 } | 62 } |
63 | 63 |
64 //----- (004C02F8) -------------------------------------------------------- | 64 //----- (004C02F8) -------------------------------------------------------- |
193 | 193 |
194 //----- (00443343) -------------------------------------------------------- | 194 //----- (00443343) -------------------------------------------------------- |
195 void ViewingParams::InitGrayPalette() | 195 void ViewingParams::InitGrayPalette() |
196 { | 196 { |
197 for (unsigned short i=0; i<256; ++i) | 197 for (unsigned short i=0; i<256; ++i) |
198 pPalette[i]=TargetColor(i, i, i); | 198 pPalette[i]=Color16(i, i, i); |
199 } | 199 } |
200 | 200 |
201 //----- (00443365) -------------------------------------------------------- | 201 //----- (00443365) -------------------------------------------------------- |
202 void ViewingParams::_443365() | 202 void ViewingParams::_443365() |
203 { | 203 { |