• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Cross-Platform OpenGL Windowing Library


Commit MetaInfo

Revision95951d9a238c09661f1a502de199953b0163712a (tree)
Zeit2020-08-03 08:27:23
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Fix window sizing issues on Windows 8/10

Ändern Zusammenfassung

Diff

--- 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);