Skip to content

DiscWright 0.7.5

Choose a tag to compare

@github-actions github-actions released this 19 Sep 15:01
· 32 commits to main since this release
b9bd4f3

A bug-fix release, all three fixes in the autorun menu. Nothing needs migrating: project files and the disc layout are unchanged, and a 0.7.4 project opens and rebuilds exactly as it did. Rebuild a disc to get its menu redone.

No more light line along the top of the button panel

The menu's background is darkened all over, and darker still behind the buttons. Both were drawn with smoothing on, and Windows' drawing library smooths a shape that starts at the very edge by covering only half of the first pixel. So the top row, the left column and the first column of the panel got half the darkening, and so did the top pixel of the divider. On dark artwork you could not see it. On bright artwork it was a thin light line along the top of the panel.

Those shapes are whole pixels, so they are now drawn without smoothing, and the divider starts one pixel above the picture.

A long title no longer runs off the menu

With title on artwork ticked, the title shrinks until it fits. It used to stop shrinking at 12pt whether it fitted or not. "Warhammer 40,000: Dawn of War - Game of the Year Edition" is 451px wide at 12pt, with 416px of room, so it ran under the button panel, or off the edge of the menu with the panel on the left. It now keeps shrinking down to 6pt when it has to. A title that fits comes out exactly as before.

A renamed game could stop the menu working

The menu is built from a template with a dozen placeholders, such as %%GAMES%% and %%BTNS%%, and they were filled in one after another. So text that had already been filled in could be filled in again. A game renamed Game %%BTNS%% Edition got the list of buttons pasted into its name, the menu's script no longer compiled, and the disc opened to nothing. GOG never names a game like that, but Name on the menu accepts anything. The placeholders are now filled in a single pass, and ordinary menus come out byte for byte as before.

All three turned up while porting the menu to the Linux version of DiscWright, which is under way and builds the same disc. Its output disagreed with the Windows app's, and each time the Windows app was the one that was wrong.

Checksums

DiscWright-0.7.5-setup.exe  078FBB9F578DDE5C44E84ACE36C2DA76440D8F8272B6A801EA93756FAC2B26DC
DiscWright-0.7.5.zip        D89F7482F655F1889F76F9962A9FAE5763E3B3419CEEA2EF8908075480041983

Tests: 438 logic, 84 window.