]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into terencehill/translated_keys
authorterencehill <piuntn@gmail.com>
Sun, 21 Apr 2019 15:44:04 +0000 (17:44 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 21 Apr 2019 15:44:04 +0000 (17:44 +0200)
1  2 
qcsrc/client/main.qc
qcsrc/common/util.qc
qcsrc/common/util.qh
qcsrc/menu/xonotic/keybinder.qc

Simple merge
Simple merge
Simple merge
index 36b134478cf0a8317c5e928f3fa29ee8eef071cc,200834ec44cc036c9d94548a0beedb6911455bae..ec7792c482446f6b50c8a977766d6c89b33eaa51
@@@ -438,10 -459,10 +460,10 @@@ void XonoticKeyBinder_drawListBoxItem(e
                        {
                                if(s != "")
                                        s = strcat(s, ", ");
 -                              s = strcat(s, keynumtostring(k));
 +                              s = strcat(s, translate_key(keynumtostring(k)));
                        }
                }
-               s = draw_TextShortenToWidth(s, me.columnKeysSize, 0, me.realFontSize);
-               draw_CenterText(me.realUpperMargin * eY + (me.columnKeysOrigin + 0.5 * me.columnKeysSize) * eX, s, me.realFontSize, theColor, theAlpha, 0);
        }
+       s = draw_TextShortenToWidth(s, me.columnKeysSize, 0, me.realFontSize);
+       draw_CenterText(me.realUpperMargin * eY + (me.columnKeysOrigin + 0.5 * me.columnKeysSize) * eX, s, me.realFontSize, theColor, theAlpha, 0);
  }