# HG changeset patch # User unc0rr # Date 1250328871 0 # Node ID 3b59f1251ead21bcd7cc367dae668d1e4bd14b51 # Parent 977ee15c3c1faf3b4f71b12987350dec7585a3c7 Bind zoom in/out to [ and ] diff -r 977ee15c3c1f -r 3b59f1251ead QTfrontend/binds.cpp --- a/QTfrontend/binds.cpp Thu Aug 13 12:45:24 2009 +0000 +++ b/QTfrontend/binds.cpp Sat Aug 15 09:34:31 2009 +0000 @@ -52,6 +52,8 @@ {"confirm", "y", QT_TRANSLATE_NOOP("binds", "confirmation"), false}, {"+voldown", "9", QT_TRANSLATE_NOOP("binds", "volume down"), false}, {"+volup", "0", QT_TRANSLATE_NOOP("binds", "volume up"), false}, + {"zoomin", "[", QT_TRANSLATE_NOOP("binds", "zoom in"), false}, + {"zoomout", "]", QT_TRANSLATE_NOOP("binds", "zoom out"), false}, {"fullscr", "f12", QT_TRANSLATE_NOOP("binds", "change mode"), false}, {"capture", "c", QT_TRANSLATE_NOOP("binds", "capture"), false}, {"rotmask", "delete", QT_TRANSLATE_NOOP("binds", "hedgehogs\ninfo"), false}, diff -r 977ee15c3c1f -r 3b59f1251ead QTfrontend/binds.h --- a/QTfrontend/binds.h Thu Aug 13 12:45:24 2009 +0000 +++ b/QTfrontend/binds.h Sat Aug 15 09:34:31 2009 +0000 @@ -21,7 +21,7 @@ #include -#define BINDS_NUMBER 36 +#define BINDS_NUMBER 38 struct BindAction { diff -r 977ee15c3c1f -r 3b59f1251ead hedgewars/uKeys.pas --- a/hedgewars/uKeys.pas Thu Aug 13 12:45:24 2009 +0000 +++ b/hedgewars/uKeys.pas Sat Aug 15 09:34:31 2009 +0000 @@ -144,9 +144,6 @@ DefaultBinds[121]:= 'confirm'; DefaultBinds[127]:= 'rotmask'; -DefaultBinds[ 61]:= 'zoomout'; -DefaultBinds[ 45]:= 'zoomin'; - DefaultBinds[KeyNameToCode('f12')]:= 'fullscr'; SetDefaultBinds