~eliasnaur/gio

layout: fix spelling of Alignment

Signed-off-by: Dan Kortschak <dan@kortschak.io>
gpu/shaders: update piet-gpu

Changes:

- fix BeginClip bounding box
- replace continue not supported by HLSL

Signed-off-by: Elias Naur <mail@eliasnaur.com>
gpu/internal/convertshaders: build compute shaders in HLSL cs_5_0 profile

The recent changes to the compute shaders have fixed all errors
previously reported by fxc. Switch from dxc to fxc to target shader
model 5.0, supported by Direct3D 11.

Because we know dxc must be available, always build compute shaders even
though the result is not yet used.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
gpu/internal/convertshaders: don't wait for winepath to exit

Apparently, exec.Command.Output waits for winepath's grandchildren to
exit. However, that may take several seconds if wineserver was started
by winepath.

exec.Command.StdoutPipe works better, in that it is closed when the
winepath process exits.

A similar change may help run the fxc.exe tool under Wine, if that ever
turns out to have the same problem.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
gpu/internal/convertshaders: batch calls to winepath

Wine tools can be slow to run, so it makes sense to batch their use.
Fortunately, winepath supports resolving multiple paths in one
execution.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
gpu/internal/convertshaders: don't use Wine for the dxc tool

dxc exists for Linux, and seems to work.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
gpu/internal/driver: use strings for generated DXIL assembly

Literal strings are a more compact than literal byte slices. A future
change will switch to go:embed to save even more space.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
gpu/internal/convertshaders,gpu: represent converted shaders with raw literals

Raw strings with linebreaks are easier to read and produce smaller
diffs.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
495c6901 — aarzilli 6 days ago
app: prevent default Windows event handler from running for WM_SYSKEYUP/DOWN

F10 has a special meaning on Windows, if the default handler runs the
first key press following F10 will not generate a key.Press event and
if the first key press after F10 is space the window menu will be
opened instead.

Fixes #213

Signed-off-by: aarzilli <alessandro.arzilli@gmail.com>
app: support changing Window options at runtime

A Window can now be requested to change its options after
it has been started via its Option method.

All options are supported on macOS, Windows and X11.
On Wayland, only the Size and Title options can be changed
at runtime.

Signed-off-by: pierre <pierre.curto@gmail.com>
app/internal/wm: [js] avoid duplicated-paste

Signed-off-by: Inkeliz <inkeliz@inkeliz.com>
app/internal/wm: use Option method to initialize windows

Added (*w.window).Option methods to the backends and use them for setting the initial options passed into NewWindow.

Signed-off-by: pierre <pierre.curto@gmail.com>
app/internal/wm: [macOS] run closure on main thread earlier if possible

Signed-off-by: pierre <pierre.curto@gmail.com>
app/internal/log: [Android] don't truncate log lines

Signed-off-by: Elias Naur <mail@eliasnaur.com>
app/internal/wm: change Options fields from values to pointers

Switching to pointer values in Options, including using window manager defaults for size and title, in preparation for updating options on the fly.

Signed-off-by: pierre <pierre.curto@gmail.com>
app/internal/wm: delete unused parameter

Signed-off-by: Elias Naur <mail@eliasnaur.com>
gpu/shaders: update piet-gpu

Changes:
- faster implementation of RGBA output
- fix stroked clips and images

Signed-off-by: Elias Naur <mail@eliasnaur.com>
io/pointer: support nested scrollables

Fixes #185.

Signed-off-by: pierre <pierre.curto@gmail.com>
app/internal/wm: [macOS/iOS] don't release nil strings in nsstringToString

Fixes gio#210

Signed-off-by: Elias Naur <mail@eliasnaur.com>
cmd/gogio: dump child program outputs to test log

Without logging, a failing child result in nondescript errors such as

windows_test.go:126: exit status 2

Signed-off-by: Elias Naur <mail@eliasnaur.com>
.builds: silence apt-get, curl commands

Signed-off-by: Elias Naur <mail@eliasnaur.com>
Next