Skip to content

Commit

Permalink
[nogpu] Apply pitch correctly to non-4 multiples.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioginer committed Feb 18, 2024
1 parent 6b00264 commit e6034d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osd/modules/render/drawnogpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ int renderer_nogpu::draw(const int update)

for (i = lstart; i <= lend ; i += lstep)
{
for (j = 0; j < pitch * 4; j += 4)
for (j = 0; j < m_width * 4; j += 4)
{
m_fb[k] = (char)m_bmdata[i+j];
m_fb[k+1] = (char)m_bmdata[i+j+1];
Expand Down

0 comments on commit e6034d2

Please sign in to comment.