Fix Ofs() syntax: GMEM_FIXED offset is always 0

Delphi 1.0 Ofs() rejects dereferenced pointer expressions.
GMEM_FIXED allocations always have offset 0, so hardcode it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Duensing 2026-03-02 18:26:35 -06:00
parent 4bbc382070
commit 40dabea161

View file

@ -2139,9 +2139,8 @@ begin
CellH := FCellHeight;
{ Extract segments/offsets from far pointers -- pure Pascal, no register clobber }
TabPtr := PPixelBuf(FGlyphBuf);
GlyphSeg := Seg(TabPtr^);
GlyphBase := Ofs(TabPtr^);
GlyphSeg := Seg(PPixelBuf(FGlyphBuf)^);
GlyphBase := 0; { GMEM_FIXED: offset is always 0 }
PixSeg := Seg(PPixelBuf(FRowBuf)^);
{ Determine which line to render (handles scrollback view) }