Full-canvas 1080p viewscreen, compact MFDs in the corners
Playtest direction on the canvas layout: all five MFDs at the compact 320x240 glass size - upper pair pushed to the top corners, score glass top-center, lower pair in the bottom corners, map bottom-center - and the viewscreen now fills the entire 1920x1080 canvas. Launched with -res 1920 1080 the 3D renders native 1:1 (the 2007 D3D9 path takes the 1080p backbuffer and 16:9 aspect without complaint). start-windowed.bat updated accordingly. Verified live: full-screen native 3D with the cockpit floating over its edges, mission running, preset lamp lit on the map column. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+8
-6
@@ -3908,17 +3908,18 @@ SVGA16::SVGA16(
|
||||
// the z-order, and clipped by those siblings so the 3D present
|
||||
// never draws over them. STATIC hit-tests transparent, so mouse
|
||||
// input over the 3D view reaches the game window as before.
|
||||
// 800x600 (the -res native size), centered on the canvas.
|
||||
// Fills the whole canvas - launch with -res 1920 1080 for
|
||||
// native 1:1 pixels.
|
||||
//---------------------------------------------------------------
|
||||
int view_w = COCKPIT_CANVAS(800);
|
||||
int view_h = COCKPIT_CANVAS(600);
|
||||
int view_w = client_w;
|
||||
int view_h = client_h;
|
||||
|
||||
if (cockpit != NULL)
|
||||
{
|
||||
cockpitViewscreen = CreateWindowExA(
|
||||
0, "STATIC", "",
|
||||
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | SS_BLACKRECT,
|
||||
(client_w - view_w) / 2, (client_h - view_h) / 2,
|
||||
0, 0,
|
||||
view_w, view_h,
|
||||
cockpit, NULL, GetModuleHandleA(NULL), NULL);
|
||||
if (cockpitViewscreen != NULL)
|
||||
@@ -3934,8 +3935,9 @@ SVGA16::SVGA16(
|
||||
// 0x37.. / lower left 0x0F.. / lower right 0x07.. and the map
|
||||
// flanked by Secondary 0x10-0x15 / Screen 0x18-0x1D.
|
||||
//---------------------------------------------------------------
|
||||
int top_glass_w = COCKPIT_CANVAS(640);
|
||||
int top_glass_h = COCKPIT_CANVAS(480);
|
||||
// all five MFDs at the compact size, corners + top center
|
||||
int top_glass_w = COCKPIT_CANVAS(320);
|
||||
int top_glass_h = COCKPIT_CANVAS(240);
|
||||
int bot_glass_w = COCKPIT_CANVAS(320);
|
||||
int bot_glass_h = COCKPIT_CANVAS(240);
|
||||
int map_glass_w = COCKPIT_CANVAS(240);
|
||||
|
||||
Reference in New Issue
Block a user