mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 10:25:43 +01:00
Fix bug with PNG image loader.
This commit is contained in:
parent
8bea381389
commit
e4c8708a4a
@ -108,7 +108,7 @@ bool ImageLoaderPNG::ReadData() {
|
|||||||
|
|
||||||
png_read_row(png_ptr, rowData, NULL);
|
png_read_row(png_ptr, rowData, NULL);
|
||||||
|
|
||||||
unsigned int rowOffset = i * m_Height;
|
unsigned int rowOffset = i * m_Width;
|
||||||
|
|
||||||
unsigned int byteIdx = 0;
|
unsigned int byteIdx = 0;
|
||||||
for(int j = 0; j < m_Width; j++) {
|
for(int j = 0; j < m_Width; j++) {
|
||||||
@ -132,7 +132,7 @@ bool ImageLoaderPNG::ReadData() {
|
|||||||
|
|
||||||
png_read_row(png_ptr, rowData, NULL);
|
png_read_row(png_ptr, rowData, NULL);
|
||||||
|
|
||||||
unsigned int rowOffset = i * m_Height;
|
unsigned int rowOffset = i * m_Width;
|
||||||
|
|
||||||
unsigned int byteIdx = 0;
|
unsigned int byteIdx = 0;
|
||||||
for(int j = 0; j < m_Width; j++) {
|
for(int j = 0; j < m_Width; j++) {
|
||||||
@ -159,7 +159,7 @@ bool ImageLoaderPNG::ReadData() {
|
|||||||
|
|
||||||
png_read_row(png_ptr, rowData, NULL);
|
png_read_row(png_ptr, rowData, NULL);
|
||||||
|
|
||||||
unsigned int rowOffset = i * m_Height;
|
unsigned int rowOffset = i * m_Width;
|
||||||
|
|
||||||
unsigned int byteIdx = 0;
|
unsigned int byteIdx = 0;
|
||||||
for(int j = 0; j < m_Width; j++) {
|
for(int j = 0; j < m_Width; j++) {
|
||||||
@ -183,7 +183,7 @@ bool ImageLoaderPNG::ReadData() {
|
|||||||
|
|
||||||
png_read_row(png_ptr, rowData, NULL);
|
png_read_row(png_ptr, rowData, NULL);
|
||||||
|
|
||||||
unsigned int rowOffset = i * m_Height;
|
unsigned int rowOffset = i * m_Width;
|
||||||
|
|
||||||
unsigned int byteIdx = 0;
|
unsigned int byteIdx = 0;
|
||||||
for(int j = 0; j < m_Width; j++) {
|
for(int j = 0; j < m_Width; j++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user