Home » Archimedes archive » Acorn User » AU 1998-05 A.adf » Regulars » StarInfo/Johns/h/screen

StarInfo/Johns/h/screen

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1998-05 A.adf » Regulars
Filename: StarInfo/Johns/h/screen
Read OK:
File size: 0154 bytes
Load address: 0000
Exec address: 0000
File contents
/*
** Screen
** ------
** Functions to do stuff with the screen ;)
*/

// finds the screen size
void screensize(int *x,int *y);

// finds the screen bpp
int screenbpp(void);

// finds the no. of colours
int screencols(void);

// finds the eig values
void screeneig(int *xeig,int *yeig);

// finds the screen address
void *screenaddr(void);
00000000  2f 2a 0a 2a 2a 20 53 63  72 65 65 6e 0a 2a 2a 20  |/*.** Screen.** |
00000010  2d 2d 2d 2d 2d 2d 0a 2a  2a 20 46 75 6e 63 74 69  |------.** Functi|
00000020  6f 6e 73 20 74 6f 20 64  6f 20 73 74 75 66 66 20  |ons to do stuff |
00000030  77 69 74 68 20 74 68 65  20 73 63 72 65 65 6e 20  |with the screen |
00000040  3b 29 0a 2a 2f 0a 0a 2f  2f 20 66 69 6e 64 73 20  |;).*/..// finds |
00000050  74 68 65 20 73 63 72 65  65 6e 20 73 69 7a 65 0a  |the screen size.|
00000060  76 6f 69 64 20 73 63 72  65 65 6e 73 69 7a 65 28  |void screensize(|
00000070  69 6e 74 20 2a 78 2c 69  6e 74 20 2a 79 29 3b 0a  |int *x,int *y);.|
00000080  0a 2f 2f 20 66 69 6e 64  73 20 74 68 65 20 73 63  |.// finds the sc|
00000090  72 65 65 6e 20 62 70 70  0a 69 6e 74 20 73 63 72  |reen bpp.int scr|
000000a0  65 65 6e 62 70 70 28 76  6f 69 64 29 3b 0a 0a 2f  |eenbpp(void);../|
000000b0  2f 20 66 69 6e 64 73 20  74 68 65 20 6e 6f 2e 20  |/ finds the no. |
000000c0  6f 66 20 63 6f 6c 6f 75  72 73 0a 69 6e 74 20 73  |of colours.int s|
000000d0  63 72 65 65 6e 63 6f 6c  73 28 76 6f 69 64 29 3b  |creencols(void);|
000000e0  0a 0a 2f 2f 20 66 69 6e  64 73 20 74 68 65 20 65  |..// finds the e|
000000f0  69 67 20 76 61 6c 75 65  73 0a 76 6f 69 64 20 73  |ig values.void s|
00000100  63 72 65 65 6e 65 69 67  28 69 6e 74 20 2a 78 65  |creeneig(int *xe|
00000110  69 67 2c 69 6e 74 20 2a  79 65 69 67 29 3b 0a 0a  |ig,int *yeig);..|
00000120  2f 2f 20 66 69 6e 64 73  20 74 68 65 20 73 63 72  |// finds the scr|
00000130  65 65 6e 20 61 64 64 72  65 73 73 0a 76 6f 69 64  |een address.void|
00000140  20 2a 73 63 72 65 65 6e  61 64 64 72 28 76 6f 69  | *screenaddr(voi|
00000150  64 29 3b 0a                                       |d);.|
00000154