示例#1
0
 void ItemsetViewer_Paint(object sender, EventArgs e)
 {
     if (vScroll != null && hScroll != null)
     {
         vScroll.BlitToScreen(base.Buffer);
         hScroll.BlitToScreen(base.Buffer);
         DrawTiles();
         SdlDotNet.Graphics.Primitives.Box box = new SdlDotNet.Graphics.Primitives.Box(new Point((selectedTile.X - hScroll.Value) * Constants.TILE_WIDTH, (selectedTile.Y - vScroll.Value) * Constants.TILE_HEIGHT), new Size(Constants.TILE_WIDTH, Constants.TILE_HEIGHT));
         base.Buffer.Draw(box, Color.Red);
         base.DrawBorder();
     }
 }