]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix notify size limits hopefully
authorFruitieX <rasse@rasse-lappy.localdomain>
Wed, 16 Jun 2010 21:29:45 +0000 (00:29 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Wed, 16 Jun 2010 21:29:45 +0000 (00:29 +0300)
qcsrc/client/hud.qc

index 487b82148618693fd25236ebf01ff476f2f79333..0e3365c51d56f183046c4d50cf3e466924531419 100644 (file)
@@ -656,8 +656,8 @@ vector HUD_Panel_GetMinSize(float id)
                        }
                        break;
                case 4: 
                        }
                        break;
                case 4: 
-                       mySize_x = 1.2; // 12/10 * height, as panel cant support more than 10 entries...
-                       mySize_y = 1/12; // 1/12 * width
+                       mySize_x = 4/5; // 4/5 * height, trial and error...
+                       mySize_y = 1/3; // 1/3 * width, trial and error...
                        break;
                case 5: 
                        mySize_y = 1/4.1; // 1/4.1 * width, trial and error...
                        break;
                case 5: 
                        mySize_y = 1/4.1; // 1/4.1 * width, trial and error...
@@ -2678,7 +2678,7 @@ void HUD_Notify (void)
        }
 
        float entries, height;
        }
 
        float entries, height;
-       entries = bound(1, floor(12 * mySize_y/mySize_x), 10);
+       entries = bound(1, floor(14 * mySize_y/mySize_x), 12);
        height = mySize_y/entries;
        entries -= 2; // top/bottom two lines reserved for info messaged, such as spec instructions
        
        height = mySize_y/entries;
        entries -= 2; // top/bottom two lines reserved for info messaged, such as spec instructions