public string currentDeviceSuffix(bool keep2x) { CCSize scrSize = LHDevice.LH_SCREEN_RESOLUTION(this.Window); foreach (LHDevice dev in devices) { CCSize devSize = dev.getSize(); if (devSize.Equals(scrSize) || (devSize.Width == scrSize.Height && devSize.Height == scrSize.Width)) { string suffix = dev.getSuffix(); if (false == keep2x) { suffix = suffix.Replace("2x", ""); } return(suffix); } } return(""); }
public static LHDevice currentDeviceFromArray(List <LHDevice> devices, CCWindow window) { return(LHDevice.deviceFromArrayWithSize(devices, LHDevice.LH_SCREEN_RESOLUTION(window))); }
public CCSize currentDeviceSize() { return(LHDevice.LH_SCREEN_RESOLUTION(this.Window)); }