home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d07xx / d0779.lha / VPortPatch / MakeVPort_Patch.c < prev    next >
C/C++ Source or Header  |  1992-12-06  |  376b  |  20 lines

  1. #define  _USEOLDEXEC_
  2. #include <proto/exec.h>
  3. #include <graphics/view.h>
  4. #include "MakeVPort_Patch_rev.h"
  5.  
  6. void (*OldFunc)(struct View *, struct ViewPort *);
  7. void MVP_Patch(void);
  8.  
  9. int _main(void) {
  10.  
  11.     struct GfxBase *GfxBase;
  12.  
  13.     if (GfxBase = OpenLibrary("graphics.library"VERSTAG,37)) {
  14.         OldFunc = SetFunction(GfxBase, -(0xd8), (APTR)MVP_Patch);
  15.         Wait(0);
  16.     }
  17.  
  18.     return(0);
  19. }
  20.