mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-27 23:34:29 +00:00
ref_soft: blit: restore height for bpp 16 and 32
This commit is contained in:
parent
609235b4f1
commit
26b8a1fe1d
@ -661,7 +661,7 @@ void R_BlitScreen( void )
|
|||||||
if( swblit.bpp == 2 )
|
if( swblit.bpp == 2 )
|
||||||
{
|
{
|
||||||
unsigned short *pbuf = buffer;
|
unsigned short *pbuf = buffer;
|
||||||
for( v = 0; v < 10;v++)
|
for( v = 0; v < vid.height;v++)
|
||||||
{
|
{
|
||||||
uint start = vid.rowbytes * v;
|
uint start = vid.rowbytes * v;
|
||||||
uint d = swblit.stride - v - 1;
|
uint d = swblit.stride - v - 1;
|
||||||
@ -694,7 +694,7 @@ void R_BlitScreen( void )
|
|||||||
else if( swblit.bpp == 3 )
|
else if( swblit.bpp == 3 )
|
||||||
{
|
{
|
||||||
byte *pbuf = buffer;
|
byte *pbuf = buffer;
|
||||||
for( v = 0; v < 10;v++)
|
for( v = 0; v < vid.height;v++)
|
||||||
{
|
{
|
||||||
uint start = vid.rowbytes * v;
|
uint start = vid.rowbytes * v;
|
||||||
uint d = swblit.stride - v - 1;
|
uint d = swblit.stride - v - 1;
|
||||||
@ -717,7 +717,7 @@ void R_BlitScreen( void )
|
|||||||
if( swblit.bpp == 2 )
|
if( swblit.bpp == 2 )
|
||||||
{
|
{
|
||||||
unsigned short *pbuf = buffer;
|
unsigned short *pbuf = buffer;
|
||||||
for( v = 0; v < 10;v++)
|
for( v = 0; v < vid.height;v++)
|
||||||
{
|
{
|
||||||
uint start = vid.rowbytes * v;
|
uint start = vid.rowbytes * v;
|
||||||
uint dstart = swblit.stride * v;
|
uint dstart = swblit.stride * v;
|
||||||
@ -748,7 +748,7 @@ void R_BlitScreen( void )
|
|||||||
else if( swblit.bpp == 3 )
|
else if( swblit.bpp == 3 )
|
||||||
{
|
{
|
||||||
byte *pbuf = buffer;
|
byte *pbuf = buffer;
|
||||||
for( v = 0; v < 10;v++)
|
for( v = 0; v < vid.height;v++)
|
||||||
{
|
{
|
||||||
uint start = vid.rowbytes * v;
|
uint start = vid.rowbytes * v;
|
||||||
uint dstart = swblit.stride * v;
|
uint dstart = swblit.stride * v;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user