Skip to content

Commit

Permalink
Revert "#22: Commented out thread and added blue rectangle to a scree…
Browse files Browse the repository at this point in the history
…n. (the actual drawing has been commented out.)"

This reverts commit 380948a.
  • Loading branch information
saku-kaarakainen committed Sep 6, 2016
1 parent 380948a commit ee9460e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 35 deletions.
12 changes: 6 additions & 6 deletions WinBoyEmulator/GameBoy/Emulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ public void StartEmulation(string gamePath)
_readGameFile(gamePath);
MMU.Instance.Load(_game);

//var thread = new Thread(_gameCycle)
//{
// IsBackground = true,
// Name = "WinBoyEmulator",
//};
//thread.Start();
var thread = new Thread(_gameCycle)
{
IsBackground = true,
Name = "WinBoyEmulator",
};
thread.Start();

}
}
Expand Down
22 changes: 9 additions & 13 deletions WinBoyEmulator/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions WinBoyEmulator/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,5 @@ private void _openFileDialogMain_FileOk(object sender, CancelEventArgs e)
{
Emulator.Instance.StartEmulation(_openFileDialogMain.FileName);
}

private void MainForm_Paint(object sender, PaintEventArgs e)
{
// Create solid brush.
SolidBrush blueBrush = new SolidBrush(Color.Blue);

Rectangle rectangle = new Rectangle(0, 0, 200, 200);

Graphics graphics = e.Graphics;
//graphics.FillRectangle(blueBrush, rectangle);
}

private void _timer_tick(object sender, EventArgs e)
{

}
}
}

0 comments on commit ee9460e

Please sign in to comment.