diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2007-01-28 00:19:15 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-01-28 01:24:19 +0200 |
commit | 0abcb2b2c84a50e64bb6aa9e94760659ecf33add (patch) | |
tree | 754e64a8a051f23d17e5e06099d0131fa2b4f2e8 /src/atimode.c | |
parent | 817b4b5338dba4d8eb862f1f79ef0edb75aad7f4 (diff) |
Clean pATI->Adapter and pATI->VGAAdapter.
- cull (pATI->Adapter != ATI_ADAPTER_MACH64)
- treat pATI->VGAAdapter as Bool
Diffstat (limited to 'src/atimode.c')
-rw-r--r-- | src/atimode.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/atimode.c b/src/atimode.c index 3ac46d9d..36d548f7 100644 --- a/src/atimode.c +++ b/src/atimode.c @@ -27,7 +27,6 @@ #include <string.h> #include "ati.h" -#include "atiadapter.h" #include "atichip.h" #include "atidac.h" #include "atidsp.h" @@ -263,7 +262,7 @@ ATIModePreInit #ifndef AVOID_CPIO - if (pATI->VGAAdapter != ATI_ADAPTER_NONE) + if (pATI->VGAAdapter) { /* Fill in VGA data */ ATIVGAPreInit(pATI, pATIHW); @@ -435,7 +434,7 @@ ATIModeSave #ifndef AVOID_CPIO - if (pATI->VGAAdapter != ATI_ADAPTER_NONE) + if (pATI->VGAAdapter) { /* Save VGA data */ ATIVGASave(pATI, pATIHW); @@ -525,7 +524,7 @@ ATIModeSave #ifndef AVOID_CPIO - if (pATI->VGAAdapter != ATI_ADAPTER_NONE) + if (pATI->VGAAdapter) ATIVGASaveScreen(pATI, SCREEN_SAVER_OFF); /* Turn on screen */ #endif /* AVOID_CPIO */ @@ -1139,7 +1138,7 @@ ATIModeSet /* Restore video memory */ ATISwap(pScreenInfo->scrnIndex, pATI, pATIHW, TRUE); - if (pATI->VGAAdapter != ATI_ADAPTER_NONE) + if (pATI->VGAAdapter) ATIVGASaveScreen(pATI, SCREEN_SAVER_OFF); /* Turn on screen */ #endif /* AVOID_CPIO */ |