Skip to content

v0.2.218

Choose a tag to compare

@hanlokesu hanlokesu released this 04 Dec 21:28
· 13 commits to main since this release

PB64Basic Enhanced v0.2.218 - batch 438.

See the full changelog in README.md


batch 438 (Gary Beene batch 7 close-out) - sample 1595_time_-_create_a_timer is pixel-identical to PBWin10, and the window on screen now matches the capture. The pair had been reported as near 0.053% in batch 435 and later as diff 5.153% while the harness activated each window: the only difference was the default button's dotted focus ring, which is drawn at inset 3 by PB64 and inset 4 by PBWin and exists only while the window is active. The harness now parks the foreground on a 1x1 dummy popup and takes an inactive-state PrintWindow, so both sides are captured without that transient artefact.

  • Root cause of the remaining on-screen difference: a plain STATIC label answered WM_CTLCOLORSTATIC with TRANSPARENT + NULL_BRUSH. That is invisible for a label written once, but 1595 rewrites two labels every 250 ms and nothing erased the old digits, so the strokes accumulated into solid black blobs (the real window showed them; a forced PrintWindow repaint looked correct, which is why pixel comparison kept disagreeing with what the screen showed). The answer is now an OPAQUE solid brush in the dialog's face colour - CONTROL SET COLOR hDlg, -1, ... still wins, sunken statics and group boxes keep their existing branches - so a label clears its own cell before drawing and uniform-face dialogs stay pixel-identical.
  • Evidence: dual_compare_b7.py --only 1595 --force run three times, each identical, pct=0, both sides on pair (13,26); the real screen shows a thin 3/4 instead of a blob after several seconds. The forced batch 7 rerun is 48 identical / 2 near (0915 0.016% and 1161 0.844%), and the forced batch 8 rerun is 50 identical / 0 near / 0 diff; rows are in garybeene-corpus/batch7_dual_work/summary.csv and batch8_dual_work/summary.csv.
  • 1161_painting_and_drawing is a pre-existing, separate difference that the stricter capture surfaced: the sample calls the TextOut API from its own WM_PAINT on a BeginPaint DC. PB64 keeps the white text cell on every repaint, while PBWin shows it only on the first paint and afterwards fills the cell with the dialog face. It is not caused by the label change (that sample has no child controls) and is left documented as near rather than reported as identical.
  • Runtime objects pb_runtime_x64.obj and pb_runtime_x86.obj were rebuilt from the updated pb_runtime.c with -O2 -ffunction-sections -fdata-sections; all four tracked copies are in sync. Self-check: examples/batch438_test.bas -> batch438-fails= 0.