public static void PrintModeInfo(XRRModeInfo mode) { Console.WriteLine("Id: {0} Name: {1} Width: {2} Height {3}", mode.id, mode.name, mode.width, mode.height); }
public OutputModeItem(int output_id, XRRModeInfo mode) { this.output_id = output_id; this.mode_id = mode.id.ToInt32(); this.name = mode.name + " " + mode.dotClock.ToInt64() / mode.vTotal / mode.hTotal + "Hz"; }