Skip to content

v0.2.217

Choose a tag to compare

@hanlokesu hanlokesu released this 04 Dec 16:40
· 14 commits to main since this release

PB64Basic Enhanced v0.2.217 - batch 437.

See the full changelog in README.md


batch 437 (Gary Beene batch 8 completion) - all seven non-identical pairs reported in v0.2.216 are now pixel-identical. A full forced rerun of the same 50 samples is 50 identical / 0 near / 0 diff, with PB64Basic 50/50 and PBWin10 50/50 compiles and no crash, timeout or missing pair. No sample was replaced to obtain the result.

  • 0109: pb_choose_font now always sets CF_INITTOLOGFONTSTRUCT, so the caller's lfHeight is honoured; the sample initialises points& = 9. Both compilers start the Size list at 8 and select 9.
  • 0143: the sample marks its intended first button with %BS_Default; the runtime no longer promotes the first button, or IDOK, to a default push button. This also keeps 1322 identical.
  • 0941: GRAPHIC RENDER treats (x1,y1)-(x2,y2) as inclusive when the span equals the control client size minus one, and uses center-sampled nearest-neighbour scaling (sx = (x*2+1)*src_w/(dst_w*2)) instead of COLORONCOLOR StretchBlt. The 100x100 result is pixel-exact against PBWin.
  • 0982: the sample gives the two Graphic controls unique IDs 500 and 501 and renders each one; the previous duplicate IDs were a sample defect, not a compiler defect.
  • 0623: initial RichEdit selection now matches PBWin. The runtime selects all only for the legacy "RichEdit" (RichEdit 1.0) class and only when it assigned the initial focus; RICHEDIT50W is not touched. The sample's EN_SetFocus handler uses EM_SETSEL 0, -1. Regression samples 0611 and 0614 remain identical.
  • 1625: the sample limits the desktop capture to a fixed 400x400 region after DESKTOP GET SIZE, removing timer and cursor residue.
  • 0898: dialog geometry uses AdjustWindowRectEx with WS_CAPTION, producing the same 161x89 outer / 145x50 client rectangle as PBWin. The sample sets the COLOR_BTNFACE background and OPAQUE text mode in WM_PAINT; codegen keeps transparent output for the TEXTOUT statement only, not for TEXTOUTA / TEXTOUTW.
  • x86 runtime declarations for SendMessageA / PostMessageA now use uintptr_t, so pb_runtime.c compiles for the i686-pc-windows-msvc target again.
  • Runtime objects pb_runtime_x64.obj and pb_runtime_x86.obj were rebuilt from the updated pb_runtime.c. Evidence: garybeene-corpus/batch8_dual_work/batch8_final_full5.log and summary.csv (50 rows, all identical). Self-check: examples/batch436_test.bas -> === FAILURES: 0.