comparison UI/Books/UIMapBook.cpp @ 2198:d9caf2b3d8d5

draw FlyAction and WaterWalk icons
author Ritor1
date Sun, 02 Feb 2014 00:10:40 +0600
parents 42c8807225a2
children aff7a7b072b7
comparison
equal deleted inserted replaced
2197:42c8807225a2 2198:d9caf2b3d8d5
379 //nearest neiborhood scaling 379 //nearest neiborhood scaling
380 if ( texture8_data) 380 if ( texture8_data)
381 { 381 {
382 for( uint i = 0; i < screenHeight; ++i ) 382 for( uint i = 0; i < screenHeight; ++i )
383 { 383 {
384 curr_line=&texture8_data[scaled_posY*textr_width]; 384 curr_line = &texture8_data[scaled_posY*textr_width];
385 stepX_r=teal; 385 stepX_r = teal;
386 for( uint j = 0; j < screenWidth; ++j ) 386 for( uint j = 0; j < screenWidth; ++j )
387 { 387 {
388 scaled_posX=stepX_r>>16; 388 scaled_posX = stepX_r>>16;
389 //map_texture_16[i*screenWidth+j]=pPalette_16[*(curr_line+scaled_posX)]; 389 //map_texture_16[i*screenWidth+j]=pPalette_16[*(curr_line+scaled_posX)];
390 pRenderer->WritePixel16(tl_x + j, tl_y + i, pPalette_16[*(curr_line+scaled_posX)]); 390 pRenderer->WritePixel16(tl_x + j, tl_y + i, pPalette_16[*(curr_line+scaled_posX)]);
391 stepX_r+=scale_increment; 391 stepX_r += scale_increment;
392 } 392 }
393 stepY_r+=scale_increment; 393 stepY_r+=scale_increment;
394 scaled_posY=stepY_r>>16; 394 scaled_posY=stepY_r>>16;
395 } 395 }
396 } 396 }