mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-16 16:20:34 +02:00
Added new image cache system, 5k super ultra wide resolutions work, screen resolution set from the ini file.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user