| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | direct video access |
JM> Can you tell me what you used (i.e. command line params and linker args)
JM> to get this to compile with Watcom 16 bit? I tried
Sorry; I had to change the code a bit to compile for 16bit. There also
appears to be a bug/limit in the wc10 16bit _beginthread(), that requires
the stack to be part of DGROUP. I don't remember seeing this problem in
wc9/9.5
[batch file -- note I point it to MSC 6 for the 16 bit headers; you can
use IBM's toolkit 1.3 instead]
setlocal
set include=%WATCOM%\h;d:\usr\msc\v60\inc;
set lib=d:\os2;%WATCOM%\lib286;%WATCOM%\lib286\os2;d:\usr\msc\v60\lib
wcl /ml /bm /w3 /zq /od /d2 circ_16.c
[circ_16.c]
#define INCL_NOPM
#define INCL_VIO
#define INCL_DOS
#include
#include
#include
#include
#include
#include
#include
#include
#define SIZEX 320
#define SIZEY 200
#define ORIGINX (SIZEX/2)
#define ORIGINY (SIZEY/2)
#define squared(n) ((n) * (n))
#define point(x, y) pchScreen[ (unsigned) ((y) * SIZEX + x)]
// circle with origin (h,k) and radius r: r^2 = (x-h)^2 + (y-k)^2
void circles(UCHAR far *pchScreen) // NOTE16
{
long x, y, r; // NOTE16
for(x=0; x * Origin: Sol 3/Toronto (905)858-8488 (1:259/414)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 259/414 400 99 250/702 3615/50 396/1 270/101 105/103 42 712/515 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.