OSDN Git Service

Windows 11に対応 master
authormaruhiro <maruhiro@bridge.ocn.ne.jp>
Sun, 18 Dec 2022 04:13:36 +0000 (13:13 +0900)
committermaruhiro <maruhiro@bridge.ocn.ne.jp>
Sun, 18 Dec 2022 09:33:35 +0000 (18:33 +0900)
crt.pas.win32

index 8df1476..5f216b6 100644 (file)
@@ -359,6 +359,12 @@ begin
        SetConsoleMode(output, ENABLE_PROCESSED_OUTPUT or ENABLE_WRAP_AT_EOL_OUTPUT);
        SetConsoleMode(input, ENABLE_PROCESSED_INPUT or ENABLE_LINE_INPUT or ENABLE_ECHO_INPUT);
 
+       r.Top := 0;
+       r.Left := 0;
+       r.Right := 1;
+       r.Bottom := 1;
+       SetConsoleWindowInfo(output, true, r);
+
        xy.x := WIDTH;
        xy.y := HEIGHT;
        SetConsoleScreenBufferSize(output, xy);