diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2007-02-13 15:03:40 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-02-13 15:22:38 +0200 |
commit | 1777dcc1956d910073e13322767d9a3de41a949b (patch) | |
tree | 5b017774170871a3c4fa9f2ed8fbfed55f2e8156 | |
parent | 9cdf4fcc3a93a4e20244286392dc31a0b8e6a10a (diff) |
[mach64] PreInit: pitchInc is local.
-rw-r--r-- | src/atipreinit.c | 12 | ||||
-rw-r--r-- | src/atistruct.h | 1 |
2 files changed, 4 insertions, 9 deletions
diff --git a/src/atipreinit.c b/src/atipreinit.c index 9c3b619c..9ba66764 100644 --- a/src/atipreinit.c +++ b/src/atipreinit.c @@ -181,7 +181,7 @@ ATIPreInit int MinX, MinY; ClockRange ATIClockRange = {NULL, 0, 80000, -1, TRUE, TRUE, 1, 1, 0}; int DefaultmaxClock = 0; - int minPitch, maxPitch = 0xFFU, maxHeight = 0; + int minPitch, maxPitch = 0xFFU, pitchInc, maxHeight = 0; int ApertureSize = 0x00010000U; int ModeType = M_T_BUILTIN; LookupModeFlags Strategy = LOOKUP_CLOSEST_CLOCK; @@ -2239,11 +2239,7 @@ ATIPreInit minPitch = 16; } - pATI->pitchInc = minPitch; - - { - pATI->pitchInc *= pATI->bitsPerPixel; - } + pitchInc = minPitch * pATI->bitsPerPixel; { pScreenInfo->maxHValue = (MaxBits(CRTC_H_TOTAL) + 1) << 3; @@ -2286,7 +2282,7 @@ ATIPreInit if ((pATI->Chip >= ATI_CHIP_264CT) && ((pATI->Chip >= ATI_CHIP_264VTB) || (pATI->MemoryType >= MEM_264_SGRAM))) - pATI->pitchInc = pATI->XModifier * (64 * 8); + pitchInc = pATI->XModifier * (64 * 8); } if (pATI->OptionPanelDisplay && (pATI->LCDPanelID >= 0)) @@ -2415,7 +2411,7 @@ ATIPreInit i = xf86ValidateModes(pScreenInfo, pScreenInfo->monitor->Modes, pScreenInfo->display->modes, &ATIClockRange, NULL, minPitch, maxPitch, - pATI->pitchInc, 0, maxHeight, + pitchInc, 0, maxHeight, pScreenInfo->display->virtualX, pScreenInfo->display->virtualY, ApertureSize, Strategy); if (i <= 0) diff --git a/src/atistruct.h b/src/atistruct.h index e50cbb58..99be359b 100644 --- a/src/atistruct.h +++ b/src/atistruct.h @@ -382,7 +382,6 @@ typedef struct _ATIRec DisplayModePtr currentMode; CARD8 depth, bitsPerPixel; short int displayWidth; - int pitchInc; rgb weight; #ifndef AVOID_DGA |