summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGabriel Rodrigues Couto <gabrielrcouto@gmail.com>2016-02-21 11:44:32 -0300
committerGabriel Rodrigues Couto <gabrielrcouto@gmail.com>2016-02-21 11:44:32 -0300
commite71aab0397520ee94a8b6194d2a76c5813f06e05 (patch)
treeef116998c2c5f9f8a640be2820d2b8cc58ff68c5 /src
parent9e198c491c067318a07d4d8719ebe038f563da71 (diff)
downloadphp-terminal-gameboy-emulator-e71aab0397520ee94a8b6194d2a76c5813f06e05.zip
php-terminal-gameboy-emulator-e71aab0397520ee94a8b6194d2a76c5813f06e05.tar.gz
php-terminal-gameboy-emulator-e71aab0397520ee94a8b6194d2a76c5813f06e05.tar.bz2
Canvas removed
Diffstat (limited to 'src')
-rw-r--r--src/Gameboy/Core.php20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/Gameboy/Core.php b/src/Gameboy/Core.php
index cc47bce..2ff3ff8 100644
--- a/src/Gameboy/Core.php
+++ b/src/Gameboy/Core.php
@@ -3,15 +3,6 @@ namespace GameBoy;
class Core
{
- // Canvas DOM object for drawing out the graphics to.
- protected $canvas;
-
- // Image DOM object for drawing out the graphics to as an alternate means.
- protected $canvasAlt;
-
- // Used for external scripts to tell if we're really using the canvas or not (Helpful with fullscreen switching).
- public $canvasFallbackHappened = false;
-
// LCD Context
public $drawContext = null;
@@ -231,16 +222,12 @@ class Core
public $RTCHALT = false;
//
- //Audio generation counters:
+ //Timing Variables
//
//Used to sample the audio system every x CPU instructions.
public $audioTicks = 0;
- //
- //Timing Variables
- //
-
//Times for how many instructions to execute before ending the loop.
public $emulatorTicks = 0;
@@ -391,10 +378,8 @@ class Core
public $cTIMER = null;
- public function __construct($canvas, $canvasAlt, $ROMImage)
+ public function __construct($ROMImage)
{
- $this->canvas = $canvas;
- $this->canvasAlt = $canvasAlt;
$this->ROMImage = $ROMImage;
$this->DISPLAYOFFCONTROL[] = function ($parentObj) {
@@ -1092,7 +1077,6 @@ class Core
}
$this->drawContext->putImageData($this->canvasBuffer, 0, 0);
- $this->canvasFallbackHappened = false;
}
public function JoyPadEvent($key, $down)