Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!canon!laukee From: laukee@canon.co.uk (David Lau-Kee) Newsgroups: comp.lang.smalltalk Subject: Re: Smalltalk coordinates to screen coordinates Message-ID: <1990Nov1.185826.9326@canon.co.uk> Date: 1 Nov 90 18:58:26 GMT References: <1089@dcl-vitus.comp.lancs.ac.uk> Reply-To: laukee@canon.co.uk Organization: Canon Research Europe, Guildford, UK Lines: 23 dik@comp.lancs.ac.uk (Mr R. M. Bentley) writes: [ stuff about displaying colour images in PPS 2.5 Q. does one get st's pixrect or frig a window offset, and how? ] Well, what you ought to do is grab Smalltalk's window offsets direct and use those. You also need the colour map info to hand. When I did something similar I couldn't figure out how do this properly, so I frigged it (your option 1). Note that you'll also need to replicate the standard bitblt (since Smalltalk will assume it can just toggle LSB for black/white), *and* set up the colour map to have every other entry black (to get the cursor functioning over the deep parts). I'm sure there's an easier way, still this was just a "design as you type" exercise . I'll mail you some code to get you started. ------------- David Lau-Kee Canon Research Centre Europe, 17/20 Frederick Sanger Rd, Surrey Research Park, Guildford, Surrey, GU25YD, UK. NRS: laukee@uk.co.canon, INET: laukee%canon@nsfnet-relay.ac.uk UUCP: laukee@canon.uucp, PATH: ..!mcsun!ukc!uos-ee!canon!laukee Tel: +44 (0) 483 574325 Fax: +44 (0) 483 574360