Use pitch
This commit is contained in:
parent
0421a7ca54
commit
4752423ff3
1 changed files with 1 additions and 1 deletions
|
@ -634,7 +634,7 @@ RenderBackend_Glyph* RenderBackend_LoadGlyph(const unsigned char *pixels, unsign
|
||||||
{
|
{
|
||||||
memcpy(out_pointer, in_pointer, width);
|
memcpy(out_pointer, in_pointer, width);
|
||||||
|
|
||||||
in_pointer += width;
|
in_pointer += pitch;
|
||||||
out_pointer += glyph->texture.surface.pitch;
|
out_pointer += glyph->texture.surface.pitch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue