Files
GitHub Actions c1a0fe2949 Switch remote deploy to vendored source builds
Move remote deployment to a vendored source bundle built on the target host via Docker so redeploys no longer require local cross-compilation or host Go installation.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-08 12:19:18 +08:00

28 lines
483 B
Go

//go:build windows
// +build windows
package edge
import (
"unsafe"
"github.com/wailsapp/go-webview2/internal/w32"
"golang.org/x/sys/windows"
)
func (e *Chromium) SetSize(bounds w32.Rect) {
if e.controller == nil {
return
}
words := (*[2]uintptr)(unsafe.Pointer(&bounds))
hr, _, _ := e.controller.vtbl.PutBounds.Call(
uintptr(unsafe.Pointer(e.controller)),
words[0],
words[1],
)
if windows.Handle(hr) != windows.S_OK {
e.errorCallback(windows.Errno(hr))
}
}