comparison UI/Books/UIMapBook.cpp @ 2155:0a1438c16c2b

Render decoupling.
author Nomad
date Thu, 09 Jan 2014 17:29:17 +0200
parents d28d3c006077
children 00bd098f6435
comparison
equal deleted inserted replaced
2154:9bd7522cdbbb 2155:0a1438c16c2b
526 screenHeight = pLevelDecorations[i].vPosition.y - pCenterY; 526 screenHeight = pLevelDecorations[i].vPosition.y - pCenterY;
527 v93 = (unsigned __int16 *)(pLevelDecorations[i].vPosition.x - viewparams->sViewCenterX); 527 v93 = (unsigned __int16 *)(pLevelDecorations[i].vPosition.x - viewparams->sViewCenterX);
528 v54 = ((unsigned __int64)((signed int)v93 * (signed __int64)viewparams->uMapBookMapZoom) >> 16) + screenCenter_X; 528 v54 = ((unsigned __int64)((signed int)v93 * (signed __int64)viewparams->uMapBookMapZoom) >> 16) + screenCenter_X;
529 v97 = (const void *)((unsigned __int64)(screenHeight * (signed __int64)viewparams->uMapBookMapZoom) >> 16); 529 v97 = (const void *)((unsigned __int64)(screenHeight * (signed __int64)viewparams->uMapBookMapZoom) >> 16);
530 v55 = screenCenterY - (int)v97; 530 v55 = screenCenterY - (int)v97;
531 if ( v54 >= pRenderer->raster_clip_x && v54 <= pRenderer->raster_clip_z 531 //if ( v54 >= pRenderer->raster_clip_x && v54 <= pRenderer->raster_clip_z
532 && v55 >= pRenderer->raster_clip_y && v55 <= pRenderer->raster_clip_w ) 532 // && v55 >= pRenderer->raster_clip_y && v55 <= pRenderer->raster_clip_w )
533 { 533 {
534 if ( viewparams->uMapBookMapZoom > 512 ) 534 if ( viewparams->uMapBookMapZoom > 512 )
535 { 535 {
536 pRenderer->RasterLine2D(v54 - 1, v55 - 1, v54 - 1, v55 + 1, Color16(0xFFu, 0xFFu, 0xFFu)); 536 pRenderer->RasterLine2D(v54 - 1, v55 - 1, v54 - 1, v55 + 1, Color16(0xFFu, 0xFFu, 0xFFu));
537 pRenderer->RasterLine2D(v54, v55 - 1, v54, v55 + 1, Color16(0xFFu, 0xFFu, 0xFFu)); 537 pRenderer->RasterLine2D(v54, v55 - 1, v54, v55 + 1, Color16(0xFFu, 0xFFu, 0xFFu));