Fix Ofs() call: use intermediate variable for typed pointer cast

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

View file

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