ViGo
Membros
-
Registro em
-
Última visita
Respostas da Comunidade
-
ViGo teve a postagem no tópico Tela de seleção/criação como a melhor respostaHoLogin.cpp, procura por: dsDrawTexImage( FaceBoxBigImage[ 0 ]
int addX = smScreenWidth / 2 - 800 / 2; if( (smConfig.ScreenSize.x 800 && smConfig.ScreenSize.y 600 ) || ( smConfig.ScreenSize.x 1024 && smConfig.ScreenSize.y 768 ) || ( smConfig.ScreenSize.x 1280 && smConfig.ScreenSize.y 960 ) || ( smConfig.ScreenSize.x 1400 && smConfig.ScreenSize.y 1050 ) ) { int newPosX = int( ( ( float )smScreenWidth*272.f ) / 800.f ); int newPosY = int( ( ( float )smScreenHeight*82.f ) / 600.f ); int newWidth = int( ( ( float )smScreenWidth*256.f ) / 800.f ); int newHeight = int( ( ( float )smScreenHeight*128.f ) / 600.f ); dsDrawTexImage( FaceBoxBigImage[ 0 ], newPosX, newPosY, newWidth, newWidth, 255 ); dsDrawTexImage( FaceBoxBigImage[ 1 ], newPosX, newPosY + newWidth, newWidth, newHeight, 255 ); } else { int newPosX = int( ( ( float )smScreenWidth*272.f ) / 724.f ); int newPosY = int( ( ( float )smScreenHeight*82.f ) / 600.f ); int newWidth = int( ( ( float )smScreenWidth*256.f ) / 1028.f ); int newHeight = int( ( ( float )smScreenHeight*128.f ) / 772.f ); dsDrawTexImage( FaceBoxBigImage[ 0 ], newPosX, newPosY + 10, newWidth, newWidth, 255 ); dsDrawTexImage( FaceBoxBigImage[ 1 ], newPosX, newPosY + newWidth + 10, newWidth, newHeight, 255 ); } int addY = smScreenHeight / 2 - 600 / 2; DrawEachPlayer( 0.5f, 0.4f, 2 );