mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-23 12:53:46 +00:00
Fix bug with PNG image loader.
This commit is contained in:
parent
8bea381389
commit
e4c8708a4a
1 changed files with 4 additions and 4 deletions
|
@ -108,7 +108,7 @@ bool ImageLoaderPNG::ReadData() {
|
|||
|
||||
png_read_row(png_ptr, rowData, NULL);
|
||||
|
||||
unsigned int rowOffset = i * m_Height;
|
||||
unsigned int rowOffset = i * m_Width;
|
||||
|
||||
unsigned int byteIdx = 0;
|
||||
for(int j = 0; j < m_Width; j++) {
|
||||
|
@ -132,7 +132,7 @@ bool ImageLoaderPNG::ReadData() {
|
|||
|
||||
png_read_row(png_ptr, rowData, NULL);
|
||||
|
||||
unsigned int rowOffset = i * m_Height;
|
||||
unsigned int rowOffset = i * m_Width;
|
||||
|
||||
unsigned int byteIdx = 0;
|
||||
for(int j = 0; j < m_Width; j++) {
|
||||
|
@ -159,7 +159,7 @@ bool ImageLoaderPNG::ReadData() {
|
|||
|
||||
png_read_row(png_ptr, rowData, NULL);
|
||||
|
||||
unsigned int rowOffset = i * m_Height;
|
||||
unsigned int rowOffset = i * m_Width;
|
||||
|
||||
unsigned int byteIdx = 0;
|
||||
for(int j = 0; j < m_Width; j++) {
|
||||
|
@ -183,7 +183,7 @@ bool ImageLoaderPNG::ReadData() {
|
|||
|
||||
png_read_row(png_ptr, rowData, NULL);
|
||||
|
||||
unsigned int rowOffset = i * m_Height;
|
||||
unsigned int rowOffset = i * m_Width;
|
||||
|
||||
unsigned int byteIdx = 0;
|
||||
for(int j = 0; j < m_Width; j++) {
|
||||
|
|
Loading…
Reference in a new issue