This commit is contained in:
Gwenhael Le Moine 2024-09-24 13:54:33 +02:00
parent 0cddd29ecd
commit 8c9c6501a5
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -120,8 +120,8 @@ void get_lcd_buffer( int* target )
for ( x = 0; x < NIBBLES_PER_ROW; x++ ) {
v = FetchNibble( addr++ );
for ( int i = 0; i < 4; i++ )
target[ ( y * 131 ) + ( x * 4 ) + i ] = v & ( 1 << ( i & 3 ) );
for ( int nx = 0; nx < 4; nx++ )
target[ ( y * 131 ) + ( x * 4 ) + nx ] = v & ( 1 << ( nx & 3 ) );
}
addr += mod_status.hdw.lcd_line_offset;
@ -135,8 +135,8 @@ void get_lcd_buffer( int* target )
for ( x = 0; x < NIBBLES_PER_ROW; x++ ) {
v = FetchNibble( addr++ );
for ( int i = 0; i < 4; i++ )
target[ ( y * 131 ) + ( x * 4 ) + i ] = v & ( 1 << ( i & 3 ) );
for ( int nx = 0; nx < 4; nx++ )
target[ ( y * 131 ) + ( x * 4 ) + nx ] = v & ( 1 << ( nx & 3 ) );
}
}
}