Skip to content

Commit

Permalink
no, it should be called CRT filter
Browse files Browse the repository at this point in the history
  • Loading branch information
poeticAndroid committed Dec 18, 2019
1 parent 42eb94a commit 1e98806
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ int main(string[] args)
config["widescreen"] = parseJSON("true");
writeConfig = true;
}
if (!("tvfilter" in config))
if (!("crtfilter" in config))
{
config["tvfilter"] = parseJSON("true");
config["crtfilter"] = parseJSON("true");
writeConfig = true;
}
if (writeConfig)
Expand Down Expand Up @@ -156,8 +156,8 @@ int main(string[] args)
}
if ("widescreen" in config)
machine.widescreen = config["widescreen"].type == JSONType.true_;
if ("tvfilter" in config)
machine.TVfilter = config["tvfilter"].type == JSONType.true_;
if ("crtfilter" in config)
machine.CRTfilter = config["crtfilter"].type == JSONType.true_;
if ("gameBindings" in config && config["gameBindings"].type == JSONType.object)
{
}
Expand Down
10 changes: 5 additions & 5 deletions source/machine.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import pixmap;
import image_loader;
import network;

const VERSION = "0.10.5"; /// version of the software
const VERSION = "0.10.6"; /// version of the software

/**
Class representing "the machine"!
Expand Down Expand Up @@ -58,7 +58,7 @@ class Machine
Pixmap busyPointer; /// mouse pointer to show when busy
int busyPointerX; /// mouse pointer anchor
int busyPointerY; /// mouse pointer anchor
bool TVfilter; /// enable TV filter
bool CRTfilter; /// enable TV filter

/**
Create a new machine
Expand Down Expand Up @@ -946,7 +946,7 @@ class Machine
}
if (this.lastmb == 0)
this.oldAspect = oldAspect;
if (this.TVfilter)
if (this.CRTfilter)
{
const b = 32;
rect.w = width + b;
Expand All @@ -956,13 +956,13 @@ class Machine
rect2.x = dx - b / 2 * scale;
rect2.y = dy - b / 2 * scale;
this.rollbar += scale;
this.applyTVfilter();
this.applyCRTfilter();
}
SDL_RenderPresent(this.ren);
this.isBusy = busy;
}

private void applyTVfilter()
private void applyCRTfilter()
{
if (!this.TVlayer)
this.createTVlayer(rect.w, rect.h);
Expand Down

0 comments on commit 1e98806

Please sign in to comment.