• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision152089654a58e0a44071e593f6ae815f04b00dcf (tree)
Zeit2016-11-23 01:02:07
AutorDeskull <desull@user...>
CommiterDeskull

Log Message

新グラフィックモード中に、Ctrl+"+"/"-"でタイルサイズの拡大縮小が出来る機能を実装。 / Implement tile scaling by Ctrl+"+"/"-" in new graphic mode.

Ändern Zusammenfassung

Diff

--- a/src/files.c
+++ b/src/files.c
@@ -5730,6 +5730,7 @@ bool show_file(bool show_version, cptr name, cptr what, int line, int mode)
57305730
57315731 /* Hack -- Re-Open the file */
57325732 fff = my_fopen(path, "r");
5733+
57335734 }
57345735
57355736 /* Return to last screen */
@@ -5740,6 +5741,7 @@ bool show_file(bool show_version, cptr name, cptr what, int line, int mode)
57405741
57415742 /* Exit on the q key */
57425743 if (skey == 'q') break;
5744+
57435745 }
57445746
57455747 /* Close the file */
--- a/src/main-win.c
+++ b/src/main-win.c
@@ -4580,6 +4580,27 @@ static bool process_keydown(WPARAM wParam, LPARAM lParam)
45804580
45814581 Term_no_press = (ma) ? TRUE : FALSE;
45824582
4583+ /* Change Term size */
4584+ if (inkey_flag && use_new_gmode)
4585+ {
4586+ term_data *td = &data[0];
4587+ if((GetKeyState(VK_OEM_PLUS) < 0) && mc && td->tile_hgt < 64)
4588+ {
4589+ td->tile_hgt += 2;
4590+ td->tile_wid += 1;
4591+ term_getsize(td);
4592+ term_window_resize(td);
4593+ }
4594+ else if((GetKeyState(VK_OEM_MINUS) < 0) && mc && td->tile_hgt >= 10)
4595+ {
4596+ td->tile_hgt -= 2;
4597+ td->tile_wid -= 1;
4598+ term_getsize(td);
4599+ term_window_resize(td);
4600+ }
4601+ }
4602+
4603+
45834604 /* Handle "special" keys */
45844605 if (special_key[(byte)(wParam)] || (ma && !ignore_key[(byte)(wParam)]) )
45854606 {