This commit is contained in:
sambaneko 2026-01-19 14:58:40 -08:00 committed by GitHub
commit a150c9e63d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -467,7 +467,7 @@ const WINDOW_HEIGHT = 116;
const SHADE_WINDOW_HEIGHT = 14;
function getWPixelSize(w: WebampWindow, doubled: boolean) {
const [width, height] = w.size;
const [width, height] = w.size ? w.size : [0,0];
const doubledMultiplier = doubled && w.canDouble ? 2 : 1;
const pix = {
height: WINDOW_HEIGHT + height * WINDOW_RESIZE_SEGMENT_HEIGHT,