Hello Teeworlds dev team, There is no bounds check on Index in CDataFileReader::GetItem() leading to OOB access in CMap::Load(). void *CDataFileReader::GetItem(int Index, int *pType, int *pID) { if...
This should allow Teeworlds to start in high-dpi mode if available.
Unfortunately I don't own a high-dpi monitor so I can't test it myself.
@oy there is also a small fix in there, width bei...
19:04
[quakenet] <Oy> dunno if #1773 works
19:06
[quakenet] <Dune> seems to work for ChillerDragon and it always worked for me
19:06
[quakenet] <Dune> Maybe gfx_highdpi 0 should be attempted as another fallback if initialization fails?
19:10
[quakenet] <Oy> well that's just an issue on windows and mac. needs to be tested there
19:10
[quakenet] <Oy> linux works out of the box
19:12
[quakenet] <Dune> so we need to find a windows with high dpi
19:15
[quakenet] <Oy> would be good :)
19:16
[quakenet] <Oy> could hook up my win machine to the tv, but too lazy :P