TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: All
from: andrew clarke
date: 1996-03-06 23:20:20
subject: VidMgr 4 of 4

* Crossposted in area ED_CODE, AUST_C_HERE, C_ECHO, PUBLIC_DOMAIN

>>>>>>>>>> CSplit: Version 2.1
>>>>>>>>>>
>>>>>>>>>> CSplit: Begin part 4/4
>>>>>>>>>>
(x1 - 1), 0);
        srce += width;
    }
}

void vm_horizline(char x1, char x2, char row, char attr, char ch)
{
    char cell[2];
    cell[0] = ch;
    cell[1] = attr;
    VioWrtNCell((PBYTE) & cell, (USHORT) (x2 - x1 + 1), (USHORT) (row - \
\
1), (USHORT) (x1 - 1), 0);
}

#else

#error Do you feel lucky, punk?

#endif

#if defined(TEST_VIDMGR)

/* Anyone want to volunteer to provide some better demo code? :-) */

#include 

int main(void)
{
    char *screen;
    vm_init();
    vm_setcursorstyle(CURSOR_HIDE);
    screen = malloc(vm_getscreensize());
    assert(screen != NULL);
    vm_gettext(1, 1, vm_getscreenwidth(), vm_getscreenheight(), screen);
    vm_clrscr();
    vm_xprintf(5, 5, vm_color(LIGHTCYAN, BLACK), "Hello %s world!", \
\
"big blue");
    vm_printfbetween(1, 40, 20, "Hello world!");
    vm_paintbox(5, 6, 75, 12, vm_color(BLUE, CYAN));
    vm_frame(10, 11, 40, 13, vm_color(WHITE, PURPLE), vm_frame_single);
    vm_getch();
    vm_puttext(1, 1, vm_getscreenwidth(), vm_getscreenheight(), screen);
    free(screen);
    vm_done();
    return 0;
}

#endif
>>>>>>>>>> CSplit: End file VIDMGR.C
>>>>>>>>>>
>>>>>>>>>> CSplit: Begin file MK_FP.H
>>>>>>>>>>
/*
**  MK_FP.H
**
**  Standard header file making sure this pesky Intel macro is defined!
*/

#ifndef MK_FP__H
#define MK_FP__H

#include "extkword.h"

#if defined(__WATCOMC__)
 #include 
#else
 #include 
#endif

#if !defined(MK_FP)
    #define MK_FP(seg,off) \
      ((void FAR *)(((unsigned long)(seg) << 16)|(unsigned)(off)))
#endif

#endif /* MK_FP__H */
>>>>>>>>>> CSplit: End file MK_FP.H
>>>>>>>>>>
>>>>>>>>>> CSplit: Begin file EXTKWORD.H
>>>>>>>>>>
/*====================================================================

    _MSC_VER        Microsoft C 6.0 and later
    _QC             Microsoft Quick C 2.51 and later
    __TURBOC__      Borland Turbo C, Turbo C++ and BC++
    __BORLANDC__    Borland C++
    __ZTC__         Zortech C and C++
    __SC__          Symantec C++
    __WATCOMC__     WATCOM C
    __POWERC        Mix Power C
    __GNUC__        Gnu C

    Revised:

    25-Sep-95  Bob Stout    Original from PC-PORT.H
======================================================================*/


/* prevent multiple inclusions of this header file */

#if !defined(EXTKWORD__H)
#define EXTKWORD__H

/*
**  Correct extended keywords syntax
*/

#if defined(_WIN32) || defined(WIN32)
 #include 
 #define INTERRUPT
 #define HUGE
#else /* ! Win 32 */
 #if defined(__POWERC) || (defined(__TURBOC__) && \
\
!defined(__BORLANDC__)) \
       || (defined(__ZTC__) && !defined(__SC__))
  #define FAR far
  #define NEAR near
  #define PASCAL pascal
  #define CDECL cdecl
  #if defined(__ZTC__)
   #define HUGE far
   #define INTERRUPT
  #else
   #define HUGE huge
   #define INTERRUPT interrupt
  #endif
 #else
  #if defined(__MSDOS__) || defined(MSDOS)
   #define FAR _far
   #define NEAR _near
   #define HUGE _huge
   #define PASCAL _pascal
   #define CDECL _cdecl
   #define INTERRUPT _interrupt
  #else
   #define FAR
   #define NEAR
   #define HUGE
   #define PASCAL
   #define CDECL
  #endif
 #endif
#endif

#endif /* EXTKWORD__H */
>>>>>>>>>> CSplit: End file EXTKWORD.H
>>>>>>>>>>
>>>>>>>>>> CSplit: End part 4/4 crc: 274d
>>>>>>>>>>

--- Msgedsq/2 3.30
* Origin: Blizzard of Ozz, Melbourne, Australia (3:635/727.4{at}fidonet)
SEEN-BY: 50/99 78/0 620/243 623/630 632/349 634/395 635/503 544 727 711/401
SEEN-BY: 711/409 410 413 430 510 808 809 932 934 712/515 713/888 714/906
SEEN-BY: 800/1 7877/2809
@PATH: 635/727 544 50/99 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™.