mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 14:59:37 +00:00
Pitch fix
This commit is contained in:
parent
d8b09c8d00
commit
2be23553c4
6
ssnes.c
6
ssnes.c
@ -213,9 +213,13 @@ static void uninit_video_input(void)
|
||||
|
||||
static inline void process_frame (uint16_t * restrict out, const uint16_t * restrict in, unsigned width, unsigned height)
|
||||
{
|
||||
int pitch = 1024;
|
||||
if ( height == 448 || height == 478 )
|
||||
pitch = 512;
|
||||
|
||||
for ( int y = 0; y < height; y++ )
|
||||
{
|
||||
const uint16_t *src = in + y * 1024;
|
||||
const uint16_t *src = in + y * pitch;
|
||||
uint16_t *dst = out + y * width;
|
||||
|
||||
memcpy(dst, src, width * sizeof(uint16_t));
|
||||
|
Loading…
Reference in New Issue
Block a user