diff options
author | James Brown | 2004-03-01 04:05:10 +0000 |
---|---|---|
committer | James Brown | 2004-03-01 04:05:10 +0000 |
commit | b77231a9a365cdcbb268101141b99200e11173b7 (patch) | |
tree | 2b0189830d366b077f5aefffe9f64c3ecc5d05b1 /sword2/driver/render.cpp | |
parent | 267a96ba4fb854643b55ba1f80607bbfd18b284b (diff) | |
download | scummvm-rg350-b77231a9a365cdcbb268101141b99200e11173b7.tar.gz scummvm-rg350-b77231a9a365cdcbb268101141b99200e11173b7.tar.bz2 scummvm-rg350-b77231a9a365cdcbb268101141b99200e11173b7.zip |
Fix from Roever for bug #892827
svn-id: r13107
Diffstat (limited to 'sword2/driver/render.cpp')
-rw-r--r-- | sword2/driver/render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sword2/driver/render.cpp b/sword2/driver/render.cpp index ce73ed49bd..0ffd82218f 100644 --- a/sword2/driver/render.cpp +++ b/sword2/driver/render.cpp @@ -841,7 +841,7 @@ void Graphics::plotYUV(byte *lut, int width, int height, byte *const *dat) { for (y = 0; y < height; y += 2) { for (x = 0; x < width; x += 2) { - int i = ((((dat[2][cpos] + ROUNDADD) >> SHIFT) * BITDEPTH) + ((dat[1][cpos] + ROUNDADD)>>SHIFT)) * BITDEPTH; + int i = ((((dat[2][cpos] + ROUNDADD) >> SHIFT) * (BITDEPTH+1)) + ((dat[1][cpos] + ROUNDADD)>>SHIFT)) * (BITDEPTH+1); cpos++; buf[linepos ] = lut[i + ((dat[0][ ypos ] + ROUNDADD) >> SHIFT)]; |