Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6393

Font_ScanString, icon widths not sticking

From Christopher Self <cself@btinternet.com>
Newsgroups comp.sys.acorn.programmer
Subject Font_ScanString, icon widths not sticking
Date 2022-07-02 15:06 +0100
Organization None
Message-ID <5a01b90ed6cself@btinternet.com> (permalink)

Show all headers | View raw


Can someone tell what's wrong with this, please:

 bbox!0  = 0
 bbox!4  = 0
 bbox!8  = 0
 bbox!12 = 0
 bbox!16 = -1
 SYS "Font_ScanString", 0, text$, &40020, 3000*400, 2500*400, bbox
=bbox!28 / 400

Or this:

 SYS "Font_ScanString", 0, text$, 0, 2500*400, 2000*400 TO ,,,width%
=width% / 400

The icon widths are correct at first, with either method, but then break
down and are shortened, seemingly randomly, when the icons are moved.

-- 
Christopher Self

Back to comp.sys.acorn.programmer | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Font_ScanString, icon widths not sticking Christopher Self <cself@btinternet.com> - 2022-07-02 15:06 +0100
  Re: Font_ScanString, icon widths not sticking svrsig <chris@svrsig.org> - 2022-10-21 01:35 -0700

csiph-web