private void UpdateContainers() { if (Program.Input.MouseLocation.Equals(lastMouseLocation)) { return; } lastMouseLocation = Program.Input.MouseLocation; Rectangle r = new Rectangle(0, 0, flagWidth, flagHeight); bool nameSet = false; for (int i = firstDrawIndex; i <= lastDrawIndex; i++) { FlagContainer f = containers[i]; r.Location = f.GetOrigin(); r.Size = f.Flag.ImageSize; if (r.Contains(Program.Input.MouseLocation)) { if (NameLabel.Text != f.Flag.Country) { nameLabelFade = 0; } NameLabel.SetLocation(f.Location.X, f.Location.Y + (f.Flag.ImageSize.Height / 3)); NameLabel.Text = f.Flag.Country; nameSet = true; } } drawNameLabel = nameSet; }