Repository navigation
First test release, for testing before 1.0. Public API 1.4.
Added
-
Licence: Widerscreen is released into the public domain under the Unlicense (
LICENSE, also shipped as
LICENSE.txtin the release zip). -
Public API v1.4, additive (the member-by-member list is in docs/api.md):
WiderscreenState.IsWide;
IWiderscreenPolicy.ForcePillarbox;IWiderscreenPatches(Patches,Find,Register) withPatchRequest,
PatchInfo(withOwner),PatchStatus,PatchKindandWiderscreenPatchIds;IWiderscreenHooks.CurrentUiGroup;
the UI group facts and the coordinate overloads below. -
UI group facts (API 1.4):
UiGroupCapsand the UI group factsUiGroups.Capabilities(id)(what a placement for a
group can do: offsets only, everything, or nothing for a reserved id) andUiGroups.NaturalAnchor(id)(where the
ui.spread setting moves a group);Coordinates.AnchorShiftPx,ToScreenandFromScreenwith an anchor on each
axis and a spread (to place an overlay where widerscreen places a group, tall pictures included; the 1.0 members are
unchanged). See docs/api.md. -
Policy requests (API 1.4):
IWiderscreenPolicy.ForcePillarbox(predicate, priority)keeps a 3D scene at the stock 16:9
picture while the predicate is true (the state then says pillarbox with the reasonForcedByConsumer; a scene
Widerscreen already keeps at 16:9 keeps its own reason, and dependency-only mode changes nothing). Requests combine
with OR.WiderscreenState.IsWidesays whether the view is wide now. -
Patch registry (API 1.4):
IWiderscreenPatcheslists every runtime patch (PatchInfo: id, address, the game's bytes,
what is there now, status, purpose and owner;WiderscreenPatchIdsnames widerscreen's own),Find(address, length)
says whose range an address is in, andRegister(PatchRequest)writes a patch of your own through the same checks
widerscreen's go through (PatchKind,PatchStatus; dispose the handle to put the expected bytes back). The six
imm32 writers and the output aspect slot use one patch helper now and are listed; their sites are reserved, and
refused to other patches, also while they hold the game's bytes. See docs/api.md. -
Hooks context (API 1.4):
IWiderscreenHooks.CurrentUiGroupsays which UI group's quads are being drawn, for a mod
that hooks a Tk draw function of its own next to Widerscreen (game thread, inside the draw; null outside every
marked group). -
docs/api.md: the public API reference, and the sample mod
xertrov.widerscreen-sample(sources insamples/, its
own zip in a release): a consumer of the API and the source of every example in that page. It references
Widerscreen to compile, ships no copy of it, and starts without it (one log line). -
Dev tools:
dev.aspect_sweepcycles the real window width at fixed height,dev.spread_curveselects a comparison curve without changing the shipped default, anddev.ui_extentslogs pre-clip HUD bounds at spread 0. -
Alt+Enter (
fix.altenter, default on) toggles windowed and the last non-windowed mode through the game’s own display-mode path. Defaults to borderless. -
In Full mode, startup and screen-mode changes use the monitor’s size unless a render override is set. Borderless stays on the game window’s monitor; exclusive fullscreen uses the primary monitor. Returning to Windowed restores the previous position and size. The game’s saved Resolution is unchanged.
-
Battle damage digits draw outside the stock 16:9 band in the extra space shown by wide and tall views.
-
Taller windows show more above and below in real-time 3D scenes without losing horizontal framing. The unstretched HUD can move toward the top and bottom, while pre-rendered rooms, movies, and the Sphere Grid keep their original framing.
-
Public API v1.3, additive:
PolicyKind.Tall,PolicyReason.Tall3D, live layoutExtentY, andBox16x9
reports the band within the output for tall targets, including custom ones.ResolutionSource.Window(added with
the resizable window): a player-sized window sets the render size for the session. -
Subtitles over movies are a placed UI group (
msg.movie_text;IsPlacedis true for it): a layout callback can
move, scale or hide them while a movie plays and fix.ui is on, inside the movie's 16:9 picture. They are marked
where the subtitle is really drawn: the message-window draw while a movie plays. A Tk menu opened over a movie
pauses the movie and draws its own message windows; those are not subtitles and are left alone. -
Resizable window (
fix.resize, default on; windowed mode, full mode only): drag the window frame, or maximize.
The game renders at the new size from the next frame after the drag ends; the picture does not follow the drag
while the mouse button is held. Withfix.resize.rememberon (the default), the next start remembers the manual window size and maximized state,
fitted to the current monitor. A Resolution change on the game's Video page clears the remembered size. -
Any render resolution: settings
render.widthandrender.height(0 = the game's own Resolution setting) set
the size the game starts at, including sizes the Video page does not list (21:9, 32:9, odd sizes). The swap chain
and the post-process targets take that size. The picture stays a correct 16:9 pillarbox for now; wide 3D comes
in a later version.GameSetting.iniis never changed. -
Settings:
mode(full / dependency-only),render.aspect(16:9 / window / custom) with the custom aspect as
render.aspect_wandrender.aspect_h,ui.anchor(edges / centre 16:9), the switchfix.resolutionand an
optional on-screen policy readout (readout.imgui). -
Policy readout: a log line on every change of size, scene or policy, with the reason. An error names any
resolution hook that Fahrenheit could not install, and the readout says "override NOT applied" while the window is
not the sizerender.width/render.heightask for. -
Public API v1.0 (
Xertrov.Widerscreen.Api): the state (render size, 16:9 box, the game's output viewport, UI
region, policy and reason, scene kind; records with init-only properties, so later fields are additive), events on change, resize, policy change and scene change, coordinate helpers between the game's UI spaces
(PS2 512x416, 1280x720, 1920x1080) and screen pixels with anchors, and the 29 UI group ids. -
Release CI: build and tests on every push; a
v*tag publishes a GitHub Release with the packaged mod. -
Wide 3D (Hor+): with
render.aspect= window (or custom) and a window wider than 16:9, real-time 3D scenes
(fields, battles, event scenes) fill the window with the same vertical view as 16:9. Pre-rendered rooms, movies,
the sphere grid and loading screens stay pillarboxed 16:9, and the Esc menus stay a centred 16:9 rectangle. The
switchfix.wide3d(default on) turns it off. -
Public API v1.1: policy reason
Wide3DFixOff. -
Unstretched UI (
fix.ui, default on): in a wide 3D scene the 2D UI keeps its 16:9 size and shape, centred. The
field minimap's panel, map and markers stay together in the centred box. Target cursors and other UI pinned to 3D
points (damage numbers, enemy limit bars) follow their actors across the whole wide view, and damage numbers past
the old 16:9 edges are drawn instead of hidden (enemy limit bars there should be too; not yet seen in a side strip). Withfix.uioff the UI is stretched as before
and the minimap camera keeps the game's 16:9. -
Full-screen fills (
fix.fills, default on; needsfix.ui): the main-menu and message-window dims and the
flashback/dream filter (sepia, grain, vignette) cover the whole wide window; the menu background art stays
centred with blurred, darkened sides that fade with it; the Esc menu's backdrop is extended over the side strips. -
HUD anchored to the screen edges: in a wide 3D scene the battle command window and help band move toward the left
edge, the party list and turn order toward the right, the field minimap to its own corner, the blitzball player
plates, TIME/score box and minimap right (from the first frame of a match) and the narration and command lists left, and the autosave icon to the bottom
right. Each group keeps its pixels (whole-pixel shifts). Everything else (message and choice windows, menus,
subtitles, Overdrive timers, the Jecht Shot prompt) stays centred. How far they move:ui.spread.auto(default
on) holds 0.75 through 43:18 (including 2560×1080 and 3440×1440), then uses smoothstep to reach 0.5 at 32:9 (ui.spread.21x9,ui.spread.32x9); with it off,ui.spread(0 =
everything in the centred 16:9 box, 1 = at the edges).ui.anchor = centre16x9keeps everything centred. Applies
at once. -
The menu background beside the centred menu page is now the art itself, scaled up uniformly to fill the width,
blurred and darkened (it replaces the stretched edge bands). Developer settingsfills.menubg.*(blur, extra scale,
rotation, offset) apply at once. -
Public API v1.2, additive: the layout layer
IWiderscreenLayout(register aUiLayoutCallbackto move, rescale,
re-anchor or hide a UI group;GetPlacementreports what is applied,IsPlacedwhich groups are placed),
UiPlacement(withIsApplied),UiLayoutContext,VerticalAnchor, and seven group ids (battle.info,
battle.simple_help,system.autosave_icon,blitz.plates,blitz.score,blitz.narration,blitz.choices).
battle.help's natural anchor is now left (with the command window; it was centre). -
settings.tiers.jsonnext to the manifest: each setting tagged standard, advanced or dev for settings UIs.
Changed
-
A subscriber of a Widerscreen event (
StateChanged,Resized,PolicyChanged,SceneChanged) that throws no
longer stops that update: each subscriber is logged once and skipped, and the others still run. On the first
throw, earlier subscribers to that event get the same change again during the fallback dispatch. -
The patch registry answers a mod listed before Widerscreen from that mod's own init (listing,
Findand
Registerwork in any load order): Widerscreen's seven sites are listed, and refused to another patch, from the
first call on. -
IWiderscreenLayout.GetPlacement(..).IsAppliedis false while Widerscreen's UI writer hooks are not installed (it
said true, although nothing was drawn). The reported placement is then the identity. -
Layout callbacks run in every picture and mode while Widerscreen's UI writer hooks are installed (API 1.4; before,
only while the UI was widened, and for subtitles over movies with fix.ui on). A callback's offset, scale or hide is
now drawn in a pillarboxed picture (a pre-rendered room, a movie) and in dependency-only mode too, where it was
reported as applied and nothing moved. Two limits are reported instead of passing silently: a spread moves a group
only while the UI is widened (the extents and the spread are 0 elsewhere), and an offset for the field minimap
applies only while the UI is widened (GetPlacementthen reports it not applied: the 3D map follows its panel only
through the widened minimap camera). -
With HUD fixes active in Full mode, covered HUD geometry no longer draws outside its shifted stock 16:9 box at any spread, including 0. This covers rectangular tagged Tk draws and fresh axis-aligned Blitzball plate and score sprites. Untagged draws, partially clipped nonrectangular Tk quads, and unsupported sprite transforms, buffers or initialization draws are unchanged.
-
Dev:
dev.hook_timingnow logs frame-time windows (count, fps, mean, median, p95, p99, max, slow frames, hook calls
per frame, allocations) instead of a chain-lookup microbenchmark; 2 adds one line per frame.
Fixed
-
The field minimap stays in its intended corner on super-ultrawide displays, including when entering Luca Main Gate from a room with a left-hand minimap.
-
Flashback / dream filter: the layers now reach at least as far as the full-screen fills (no unfiltered sliver at a
fractional side extent), and with the fills switched off while the game is paused the filter is the game's own again. -
Video-page crash guard (
fix.videopage, default on): at a resolution the game's Video page does not list (any size
outside the display's modes, such as 5120x1440), the game itself could exit with 0xC0000409 as the title loaded. Its
Video page selected entry -1 of the mode list and formatted the junk before the list into a 12-byte buffer. The page
now selects the listed size nearest your resolution; GameSetting.ini and the render size are not changed. Picking
that shown size on the page applies nothing (the game sees no change); to switch to it, pick another size first, or
edit the Resolution in GameSetting.ini. When no listed size is safe to show (a display that reports no usable
modes), the Resolution row lists only your current size for that session. This is a crash guard, not a look change,
so it also runs in dependency-only mode.