Offthread gfx #22

Merged
merged 16 commits into from Jan 24, 2016

adding some intercepts

  • Loading branch information...
taisel committed Jan 23, 2016
commit 893ce663b2565e897455f859e8885c24031b3784
@@ -1369,12 +1369,15 @@ GameBoyAdvanceGraphicsRenderer.prototype.writeOAM32 = function (address, data) {
this.objRenderer.writeOAM32(address >> 2, data | 0);
}
GameBoyAdvanceGraphicsRenderer.prototype.readOAM = function (address) {
+ address = address | 0;
return this.objRenderer.readOAM(address | 0) | 0;
}
GameBoyAdvanceGraphicsRenderer.prototype.readOAM16 = function (address) {
+ address = address | 0;
return this.objRenderer.readOAM16(address | 0) | 0;
}
GameBoyAdvanceGraphicsRenderer.prototype.readOAM32 = function (address) {
+ address = address | 0;
return this.objRenderer.readOAM32(address | 0) | 0;
}
GameBoyAdvanceGraphicsRenderer.prototype.writePalette256Color = function (address, palette) {
@@ -1409,5 +1412,6 @@ GameBoyAdvanceGraphicsRenderer.prototype.writePalette16Color = function (address
}
}
GameBoyAdvanceGraphicsRenderer.prototype.readPalette8 = function (address) {
+ address = address | 0;
return this.paletteRAM[address & 0x3FF] | 0;
}
@@ -1148,7 +1148,9 @@ GameBoyAdvanceRendererProxy.prototype.writeBLDY8 = function (data) {
GameBoyAdvanceRendererProxy.prototype.writeVRAM8 = function (address, data) {
address = address | 0;
data = data | 0;
- this.renderer.writeVRAM8(address | 0, data | 0);
+ //if ((address & 0x10000) == 0 || ((address & 0x17FFF) < 0x14000 && (this.IOData8[0] & 0x7) >= 3)) {
+ this.renderer.writeVRAM8(address | 0, data | 0);
+ //}
}
GameBoyAdvanceRendererProxy.prototype.writeVRAM16 = function (address, data) {
address = address | 0;
Oops, something went wrong.