Repository navigation
Smart Pro: a responsive, widescreen launcher - #398
Merged
Merged
Conversation
The launcher drew every screen on a fixed 1024x768 design space. The canvas is now 768 units high on every handheld and as wide as the panel's shape makes it, on the 8-unit grid (src/canvas.h): 1024 on 4:3, 1368 on 16:9. ZYPEROS_SCREEN_W is that width, set from the device's profile at the start and again when the host wears another handheld (--device). The GKD Pixel 2 and the TrimUI Brick keep their 1024x768, unit for unit. The TrimUI Smart Pro draws the 1368x768 canvas and brick.c scales it onto its whole 1280x720 panel (no side bars); a shot is the canvas itself. What needed a width at compile time takes the canvas's: the home's still (a function now), the port loading backdrop's grid (sized for the widest canvas). The shared parts at the edges follow the canvas: the status corner and the top bar's right edge, the top bar's middle, the level bar in the launcher (src/osdbar.h stays the 4:3 place Diatom and portkeys share), the HUD menu's corners, the games' and the home's hints on the right, the fit check's overflow, the empty home's right card. check-devices holds the rule (each shape's width, each handheld's canvas, the 4:3 column), DESIGN.md 2 says it, and the layout ratchet moves the canvas's own height from platform.h to canvas.h.
… width My picks from the widescreen lab, for a canvas wider than 4:3 (the Smart Pro's 1368): - A page's two tiles (Scraper, Achievements, Downloads, Wi-Fi File Transfer, Flash Drive) share the line from inset to inset, each half the extra width wider (ds_page_tile_w: 472 on 4:3, 644 at 1368). - The empty home's two cards share the line the same way (476, 648). - A panel over the screen keeps the 4:3 width at most, in the middle (canvas_panel_room): the in-game menu sits over the game's 4:3 picture, and MENU's fixed-width pages (Screen Colors, the equalizer, Controls, Hotkeys, Cheats) stay as they are on 4:3. - Page rows (Downloads) run edge to edge, as the branch already drew them. On a 4:3 canvas every one of these is the number it was.
usbdrive's pictures were 640x480 on every handheld, the launcher's canvas at 0.625. On the Smart Pro's 1368x768 canvas that squeezed the page sideways, and the atlas's places (in the canvas's units at 5/8) no longer met it. The pictures are 0.625 of the canvas both ways now, 855x480 there and 640x480 on 4:3 as before: the atlas's size line says so, the level bar's place is the canvas's middle, and usbdrive takes a still page's width from its file (the Brick's family; the live page already took the atlas's size).
Every screen in every language as the Smart Pro, on its 1368-unit canvas, beside the Pixel 2 and the Brick: a string must fit there as well.
The Smart Pro's 3D drawing, as the Brick's is its own: its model (src/device/smartpro_model.c) in the millimetres of its published outline (188 x 80 x 17) and the key places measured on the line drawing in TrimUI's user manual, and its art in src/tourdevice.c (TD_ART_SMARTPRO): one block with rounded ends, the glass and the picture, the d-pad, A B X Y, the two sticks in their light rings, MENU, SELECT and START, the speaker grilles; on the top edge L and R wrapping round the corners with L2 and R2 behind them, POWER, the USB-C port and the volume keys. The sticks are drawn, never lit. Original art, no maker's mark. The helpers the Brick's art had that any art can use are shared now (round keys, the d-pad's cross and SELECT's and START's marks at a depth, a block, a face, a spot), so the Smart Pro's draws with them; the Brick's draws what it drew. As printed, SELECT has a square and START a play triangle, so the Smart Pro's glyphs are the Brick's marks; MENU stays its word. The tutorial on a wider canvas: its 1024-unit composition stands in the middle, a lesson's handheld column takes the whole difference (the Smart Pro's 188 mm wide body at 2.85 units a millimetre), and START: skip and Zyper's corner keep to the canvas's edges. On a 4:3 canvas nothing moves. Its kept boxes hold every pose and turn (--handheld-box: 8,600 of the tutorial, 16,324 of the Controls tab); check-model, check-devices, tour-shot-check and controls-shots-check hold the Smart Pro too. The checks that link src/ui.c or src/resident.c link src/canvas.c now.
A wide canvas's strip reaches further, so a tile can stand half past the right edge with its Now chip cut there (the fit check said so as the Smart Pro). A tile shows its chip only where the chip shows whole.
I shot every screen in English as the Smart Pro and went through them. These placed a part for the 4:3 canvas: - Storage: the numbers, the bar and the rows run edge to edge, and Zyper stands in the middle. - The port loading screen: its cover and words are one composition, in the 4:3 column in the middle. - Now Playing's vinyl: the record and its column keep the 4:3 room, in the middle. - Media: Zyper stands at the found column's end, not at 904. - The Scraper's and the Downloads' runs: the covers before the newest fill their room with more covers a row, not with wider gaps (three a row on 4:3, five on the Smart Pro; canvas_fit_cols). The Downloads shot holds eleven, what a 16:9 run shows. - A video under the header: no taller than the room under the header, so on a 16:9 canvas the picture is a little smaller in the middle instead of running off the foot. On a 4:3 canvas each gives the number it had. The song's name in the top bar stands 70 units right of the middle, on the Brick too: that is the 4:3 design, so it stays.
smartpro has main in it now (1.1.0 and after). Downloads keeps what came in g_rec, main's list for the whole session, so the grid's cells (nc) and the shot's eleven arrivals for a 16:9 run read it and add to it with rec_add; DL_RING already holds fourteen. Main moved each check into a file of its own (mk/checks/NAME.mk), so check-i18n-shots' row says the Smart Pro there, and check-devices' row the 16:9 screen, the Smart Pro and the canvas, beside main's battery voltages; docs/building.md's table is written again from them.
Main's check-gpu-upright sized the bend's read-back with ZYPEROS_SCREEN_W, a constant there; on this branch it is the run's canvas (canvas_w), so the static buffer no longer compiled on Linux. It is sized for the widest canvas now, and the bend links src/canvas.c.
A kit seeded .userdata/brick/diatom-present and Diatom's Brick port read it there on every handheld that runs that port, so on a Smart Pro, whose settings are in .userdata/smartpro, the kit's timing never started. Both sides take the place from diatom/port/present_file.h now: the card's USERDATA_PATH, as sd/brick/device.sh exports it for the device, and the Brick's folder with none, so the Brick's file is where it was. check-kitbuild holds the three cases and that both sides use it.
This was referenced Nov 23, 2026
tarikbc
marked this pull request as ready for review
November 24, 2026 00:24
Main brought the R36S (#459), whose art is the Brick's made a slab of measures (g_slab), while this branch made the Brick's helpers the handhelds' (face_shape, spot_of, shows, top_col, and cross and icon with their sizes as arguments) for the Smart Pro's own art. The slab's code calls those, with the slab's arm and icon sizes. td_art has the Smart Pro and the R36S, and the Makefile's device and model lists, model-check and tour-shot-check both handhelds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The launcher becomes responsive, so the TrimUI Smart Pro gets a real widescreen interface instead of the 4:3 picture with black bars. Stacked on #244 (the Smart Pro's hardware and board). Draft until 1.1.0 has shipped.
The model
src/canvas.h): 1024 on 4:3, 1368 on 16:9, 1152 on 3:2, 768 on 1:1.ZYPEROS_SCREEN_Wis that width, set from the device's profile at the start and again when the host wears another handheld (--device).brick.cscales it onto its whole 1280x720 panel. A host shot is the canvas itself.What changed
src/osdbar.hstays the 4:3 place that Diatom and portkeys share), the HUD menu's corners, the right-hand hints on the home and the games, the fit check's overflow.src/device/smartpro_model.c,TD_ART_SMARTPRO), measured on the line drawing in TrimUI's user manual: the d-pad, A B X Y, the sticks in their light rings, MENU, SELECT and START on the front; L and R wrapping round the rounded corners with L2 and R2 behind them, POWER, the USB-C port and the volume keys on the top edge. The Brick's helpers that any art can use are shared now; the Brick draws what it drew. SELECT's square and START's triangle are its glyphs, as printed.canvas_fit_cols); a video under the header is no taller than the room under it, so a 16:9 picture no longer runs off the foot.Proof
make pixel-gate BASE=e9efca9c GATE='--lang en': 0 of 1874 frames changed as the Pixel 2 (before and after the picks) and 0 of 1874 as the Brick (--device brick). The unsteady ones are clock and uptime shots that differ from their own side's second shot too.--handheld-box: 8,600 of the tutorial, 16,324 of the Controls tab).check-devicesholds the canvas rule: each shape's width, each handheld's canvas, the 4:3 column;check-model,tour-shot-checkandcontrols-shots-checkhold the Smart Pro's drawing.--device smartproshots of every screen in English fit (check-i18n-shotssays "everything fits"), andcheck-i18n-shotsnow shoots the Smart Pro in every language beside the Pixel 2 and the Brick. DESIGN.md 2 and docs/building.md describe the canvas.