Add stamp source hashing and maximize test infrastructure
- Add source hashing to stamp system (functions.sh) for detecting when dependencies need rebuild based on source file changes - Update build-pcbnew.sh to use source stamps for wxWidgets - Add global-setup.ts to clean logs before test runs - Add maximize_test standalone test to verify wxFrame::Maximize() works correctly in WASM (it does - window is 1280x720) - Update Makefile.wasm with maximize test build rules The maximize_test proves wxWidgets display detection works fine. KiCad's 20x20 window bug is KiCad-specific, not a wxWidgets issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6771e7de74
commit
8453f9681e
8 changed files with 416 additions and 14 deletions
|
|
@ -55,7 +55,7 @@
|
|||
</style>
|
||||
</head>
|
||||
<body style="margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #1a1a2e;">
|
||||
<div id="main-window"></div>
|
||||
<div id="main-window" style="width: 100vw; height: 100vh; position: absolute; top: 0; left: 0;"></div>
|
||||
|
||||
<div id="status">
|
||||
<div id="status-text">Initializing...</div>
|
||||
|
|
@ -79,8 +79,13 @@
|
|||
var canvas = document.createElement('canvas');
|
||||
canvas.id = 'canvas';
|
||||
canvas.style.display = 'none';
|
||||
canvas.style.width = window.innerWidth + 'px';
|
||||
canvas.style.height = window.innerHeight + 'px';
|
||||
// Set both CSS display size and internal pixel resolution
|
||||
var width = window.innerWidth;
|
||||
var height = window.innerHeight;
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
canvas.style.width = width + 'px';
|
||||
canvas.style.height = height + 'px';
|
||||
canvas.oncontextmenu = function() { event.preventDefault(); };
|
||||
canvas.addEventListener("webglcontextlost", function(e) {
|
||||
showError('WebGL context lost. You will need to reload the page.');
|
||||
|
|
@ -90,7 +95,7 @@
|
|||
mainWindow.appendChild(canvas);
|
||||
Module.canvas = canvas;
|
||||
|
||||
console.log('[KICAD] preRun complete, canvas created');
|
||||
console.log('[KICAD] preRun complete, canvas created: ' + width + 'x' + height);
|
||||
};
|
||||
|
||||
var onRuntimeInitialized = function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue