🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #13605

need small amount of code for set/reset pixels

#13605
From: Martin Grossman
Date: Fri, 02 Feb 1990 22:32
26 lines
1402 bytes
Could anyone send me a small segment of code that I could interface with.

0) background.....Sun 3/50 (diskless) standard mono display running OS 3.5
should be able to run within a window.

1) I need a subroutine that returns x,y (pixel offset) of upper left of
the window and  w,h (size in pixels) of the window (within the frame
buffer).

2) I need a subroutine to get control, whenever the window moves or
changes size (possibly a signal or event routine).

3) I need a simple way of clearing a region within the window
xxxxx(xmin,ymin,xmax,ymax)

4) I need a simple way of setting individual pixels in the window
xxxxx(x,y, 0 | 1)

5) I need a simple way of drawing vectors (simple lines) in the window
xxxxx(xmin,ymin,xmax,ymax)

PS I can do #3,#4,and #5 above if I use the routines in the pixrect
library BUT they all operate on the whole screen (probably could use these
if I had a way of doing #1, and #2 above)

	grossman@bbn.com
Technical Details
Message-ID: <4747@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request
From: grossman@bbn.com (Martin Grossman)
Newsgroups: comp.sys.sun
Subject: need small amount of code for set/reset pixels
Keywords: Windows
Message-ID: <4747@brazos.Rice.edu>
Date: 2 Feb 90 22:32:00 GMT
Sender: root@rice.edu
Organization: Sun-Spots
Lines: 26
Approved: Sun-Spots@rice.edu
X-Sun-Spots-Digest: Volume 9, Issue 28, message 9 of 11