• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

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


Commit MetaInfo

Révision0ed50532c22ed9ee3c846a6b02fd429e9d492e5d (tree)
l'heure2016-11-14 23:38:14
AuteurDeskull <desull@user...>
CommiterDeskull

Message de Log

新グラフィックモード時のウィンドウ最小サイズを調整。INIファイルに新グラフィックモードのフラグを追加。/Adjust minimum window size in new graphic mode. Add new graphic mode flag to INI file.

Change Summary

Modification

--- a/src/main-win.c
+++ b/src/main-win.c
@@ -1133,11 +1133,13 @@ static void save_prefs_aux(int i)
11331133 else wsprintf(buf, "%d", td->rows);
11341134 WritePrivateProfileString(sec_name, "NumRows", buf, ini_file);
11351135
1136- /* Maxmized (only main window) */
1136+ /* Maxmized and NewGraphicMode (only main window) */
11371137 if (i == 0)
11381138 {
11391139 strcpy(buf, IsZoomed(td->w) ? "1" : "0");
11401140 WritePrivateProfileString(sec_name, "Maximized", buf, ini_file);
1141+ strcpy(buf, use_new_gmode ? "1" : "0");
1142+ WritePrivateProfileString(sec_name, "NewGraphicMode", buf, ini_file);
11411143 }
11421144
11431145 /* Acquire position */
@@ -1274,6 +1276,7 @@ static void load_prefs_aux(int i)
12741276 if (i == 0)
12751277 {
12761278 win_maximized = GetPrivateProfileInt(sec_name, "Maximized", win_maximized, ini_file);
1279+ use_new_gmode = GetPrivateProfileInt(sec_name, "NewGraphicMode", win_maximized, ini_file);
12771280 }
12781281
12791282 /* Window position */
@@ -4087,7 +4090,7 @@ static void process_menus(WORD wCmd)
40874090 case IDM_WINDOW_I_WID_6:
40884091 case IDM_WINDOW_I_WID_7:
40894092 {
4090- if(arg_graphics == GRAPHICS_HENGBAND) break;
4093+ if(use_new_gmode) break;
40914094
40924095 i = wCmd - IDM_WINDOW_I_WID_0;
40934096
@@ -4114,7 +4117,7 @@ static void process_menus(WORD wCmd)
41144117 case IDM_WINDOW_D_WID_6:
41154118 case IDM_WINDOW_D_WID_7:
41164119 {
4117- if(arg_graphics == GRAPHICS_HENGBAND) break;
4120+ if(use_new_gmode) break;
41184121
41194122 i = wCmd - IDM_WINDOW_D_WID_0;
41204123
@@ -4141,7 +4144,7 @@ static void process_menus(WORD wCmd)
41414144 case IDM_WINDOW_I_HGT_6:
41424145 case IDM_WINDOW_I_HGT_7:
41434146 {
4144- if(arg_graphics == GRAPHICS_HENGBAND) break;
4147+ if(use_new_gmode) break;
41454148
41464149 i = wCmd - IDM_WINDOW_I_HGT_0;
41474150
@@ -4168,7 +4171,7 @@ static void process_menus(WORD wCmd)
41684171 case IDM_WINDOW_D_HGT_6:
41694172 case IDM_WINDOW_D_HGT_7:
41704173 {
4171- if(arg_graphics == GRAPHICS_HENGBAND) break;
4174+ if(use_new_gmode) break;
41724175
41734176 i = wCmd - IDM_WINDOW_D_HGT_0;
41744177
@@ -4327,7 +4330,7 @@ static void process_menus(WORD wCmd)
43274330 {
43284331 td->tile_hgt = 24;
43294332 td->tile_wid = 24;
4330- arg_bigtile = false;
4333+ arg_bigtile = 0;
43314334
43324335 term_getsize(td);
43334336 term_window_resize(td);
@@ -4710,8 +4713,17 @@ LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
47104713
47114714 /* Minimum window size is 80x24 */
47124715 rc.left = rc.top = 0;
4713- rc.right = rc.left + 80 * td->tile_wid + td->size_ow1 + td->size_ow2;
4714- rc.bottom = rc.top + 24 * td->tile_hgt + td->size_oh1 + td->size_oh2 + 1;
4716+
4717+ if(use_new_gmode)
4718+ {
4719+ rc.right = rc.left + 20 * td->tile_wid + td->size_ow1 + td->size_ow2;
4720+ rc.bottom = rc.top + 20 * td->tile_hgt + td->size_oh1 + td->size_oh2 + 1;
4721+ }
4722+ else
4723+ {
4724+ rc.right = rc.left + 80 * td->tile_wid + td->size_ow1 + td->size_ow2;
4725+ rc.bottom = rc.top + 24 * td->tile_hgt + td->size_oh1 + td->size_oh2 + 1;
4726+ }
47154727
47164728 /* Adjust */
47174729 AdjustWindowRectEx(&rc, td->dwStyle, TRUE, td->dwExStyle);