変愚蛮怒のメインリポジトリです
修订版 | 152089654a58e0a44071e593f6ae815f04b00dcf (tree) |
---|---|
时间 | 2016-11-23 01:02:07 |
作者 | Deskull <desull@user...> |
Commiter | Deskull |
新グラフィックモード中に、Ctrl+"+"/"-"でタイルサイズの拡大縮小が出来る機能を実装。 / Implement tile scaling by Ctrl+"+"/"-" in new graphic mode.
@@ -5730,6 +5730,7 @@ bool show_file(bool show_version, cptr name, cptr what, int line, int mode) | ||
5730 | 5730 | |
5731 | 5731 | /* Hack -- Re-Open the file */ |
5732 | 5732 | fff = my_fopen(path, "r"); |
5733 | + | |
5733 | 5734 | } |
5734 | 5735 | |
5735 | 5736 | /* Return to last screen */ |
@@ -5740,6 +5741,7 @@ bool show_file(bool show_version, cptr name, cptr what, int line, int mode) | ||
5740 | 5741 | |
5741 | 5742 | /* Exit on the q key */ |
5742 | 5743 | if (skey == 'q') break; |
5744 | + | |
5743 | 5745 | } |
5744 | 5746 | |
5745 | 5747 | /* Close the file */ |
@@ -4580,6 +4580,27 @@ static bool process_keydown(WPARAM wParam, LPARAM lParam) | ||
4580 | 4580 | |
4581 | 4581 | Term_no_press = (ma) ? TRUE : FALSE; |
4582 | 4582 | |
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 | + | |
4583 | 4604 | /* Handle "special" keys */ |
4584 | 4605 | if (special_key[(byte)(wParam)] || (ma && !ignore_key[(byte)(wParam)]) ) |
4585 | 4606 | { |