Fixed Texture Size, selecting size

This commit is contained in:
Pan7 2015-10-17 02:24:22 +02:00
parent e8acfaebc1
commit 4f516b1f60

View file

@ -1481,8 +1481,9 @@ void SelectTexture( int mx, int my, bool bShift, bool bFitScale ){
if ( !q ) {
break;
}
int nWidth = (int)( q->width * ( (float)g_PrefsDlg.m_nTextureScale / 100 ) );
int nHeight = (int)( q->height * ( (float)g_PrefsDlg.m_nTextureScale / 100 ) );
int nWidth;
int nHeight;
Texture_GetPosSize( q, nWidth, nHeight );
if ( mx > x && mx - x < nWidth
&& my < y && y - my < nHeight + FONT_HEIGHT ) {
if ( bShift ) {