• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

Cross-Platform OpenGL Windowing Library


コミットメタ情報

リビジョン95951d9a238c09661f1a502de199953b0163712a (tree)
日時2020-08-03 08:27:23
作者AlaskanEmily <emily@alas...>
コミッターAlaskanEmily

ログメッセージ

Fix window sizing issues on Windows 8/10

変更サマリ

差分

--- a/glow_win32.c
+++ b/glow_win32.c
@@ -373,14 +373,14 @@ void Glow_CreateWindow(struct Glow_Window *out,
373373 size.top = 0;
374374 size.right = w;
375375 size.bottom = h;
376+ /* Note that AdjustWindowRect will center the client area around the
377+ * left/top of the input, so we will need to use the differences for
378+ * the actual window dimensions. */
376379 AdjustWindowRect(&size, style, TRUE);
377- size.bottom += (GetSystemMetrics(SM_CYFRAME) +
378- GetSystemMetrics(SM_CYCAPTION) +
379- GetSystemMetrics(SM_CXPADDEDBORDER));
380380 out->win = CreateWindow(GLOW_CLASS_NAME,
381381 title,
382382 style,
383- 64, 64, size.right, size.bottom,
383+ 64, 64, size.right - size.left, size.bottom - size.top,
384384 NULL, NULL,
385385 glow_app,
386386 out);