mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Fixed Texture Size, selecting size
This commit is contained in:
parent
e8acfaebc1
commit
4f516b1f60
1 changed files with 3 additions and 2 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue