mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-23 17:49:57 -04:00
Crash fixes (a load crash from the virtual cores' escape, the upscaler-before-the-bloom crash, out of memory at a file's open), slow motion after a movie fixed, three save files with per-save achievements (ZakyPew), ten more achievements and their own menu group, N64 Classic, native ultrawide output (Kaefergeneral), the community AMD frame-time fixes, the helper threads' calm-scene tuner and benchmark test, update and Linux launcher fixes.
18 lines
1.1 KiB
C
18 lines
1.1 KiB
C
/* (Triforce) The connected screens, as the game's window code finds them at the start (host/display.c on Windows,
|
|
host/posix/display_sdl.c with SDL elsewhere), for the Output resolution: host/nn_applet.c takes the size of the one the
|
|
window opens on for the old Screen value, and the Insert menu lists each one's size as a choice (MkwVkHost.screens,
|
|
host/rx_backend.c). Sizes are native pixels. A screen is told to the player by its size and its name; nothing keeps its
|
|
place in this list, which changes as screens are plugged in. */
|
|
#pragma once
|
|
|
|
typedef struct HosScreen {
|
|
int w, h; /* (pixels) */
|
|
int opens; /* (1: the game's window opens on this one) */
|
|
char name[64]; /* (the monitor's own name, UTF-8, "" where the system has none: a laptop's panel) */
|
|
} HosScreen;
|
|
|
|
/* The connected screens, at most cap of them: how many were written (0: none known, a run with no window) */
|
|
int hos_screens(HosScreen *out, int cap);
|
|
/* The size of the one the window opens on, 0 x 0 when it is not known */
|
|
void hos_screen_size(int *w, int *h);
|