Browse Source

Remove some copy&paste leftovers

Signed-off-by: falkTX <falktx@falktx.com>
pull/507/head
falkTX 5 months ago
parent
commit
1b6cb3af18
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      dgl/src/pugl-extra/wasm.c

+ 1
- 2
dgl/src/pugl-extra/wasm.c View File

@@ -110,9 +110,8 @@ puglUpdateSizeHints(PuglView* const view)
canvasWrapper.style.setProperty("max-height", height + 'px');
}, className, size.width, size.height);
} else {
// Avoid setting PBaseSize for top level views to avoid window manager bugs
const PuglArea defaultSize = view->sizeHints[PUGL_DEFAULT_SIZE];
if (puglIsValidArea(defaultSize) && view->parent) {
if (puglIsValidArea(defaultSize)) {
EM_ASM({
var canvasWrapper = document.getElementById(UTF8ToString($0)).parentElement;
canvasWrapper.style.setProperty("width", parseInt($1 / window.devicePixelRatio) + 'px');


Loading…
Cancel
Save