Added new image cache system, 5k super ultra wide resolutions work, screen resolution set from the ini file.

This commit is contained in:
Justin Marshall
2020-06-23 16:31:16 -07:00
parent e93b511b53
commit 6d50fb6fca
13 changed files with 332 additions and 95 deletions
+1 -1
View File
@@ -95,7 +95,7 @@
*=============================================================================================*/
inline int Lepton_To_Pixel(LEPTON lepton)
{
return (((int)(signed short)lepton * ICON_PIXEL_W) + (ICON_LEPTON_W / 2) - ((lepton < 0) ? (ICON_LEPTON_W - 1) : 0)) / ICON_LEPTON_W;
return (((int)(int)lepton * ICON_PIXEL_W) + (ICON_LEPTON_W / 2) - ((lepton < 0) ? (ICON_LEPTON_W - 1) : 0)) / ICON_LEPTON_W;
}