dilevin / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 7 forks source link

width & height when reading from png coming out as large negative numbers. #27

Closed NPTP closed 4 years ago

NPTP commented 4 years ago

Hi, maybe this is a Windows specific issue. Running Visual Studio 2019.

The starter code in main.cpp calls "read_rgba_from_png" and the resulting width and height become large negative numbers (perhaps some issue with signing/unsigning ints in this compiler?), making them break the rest of the program on run. This is code that we did not write and have not touched. Anyone else had the same issue/have a fix? Thanks!

songfeil commented 4 years ago

22

NPTP commented 4 years ago

Thank you! Solved from the suggestions in #22 . Didn't see the closed issues page.