calls to rogueviz::mark and rogueviz::fixparam from HR main are now replaced by hooks

This commit is contained in:
Zeno Rogue
2018-07-09 18:59:12 +02:00
parent 827ae794d6
commit 508c63d731
7 changed files with 11 additions and 17 deletions
+4 -3
View File
@@ -5321,6 +5321,8 @@ bool sidescreen;
bool dronemode;
purehookset hooks_calcparam;
void calcparam() {
DEBB(DF_GRAPH, (debugfile,"calc param\n"));
vid.xcenter = vid.xres / 2;
@@ -5361,6 +5363,8 @@ void calcparam() {
else
stereo::scrdist = vid.radius;
stereo::scrdist_text = stereo::scrdist;
callhooks(hooks_calcparam);
}
int ringcolor = darkena(0xFF, 0, 0xFF);
@@ -5616,9 +5620,6 @@ void drawscreen() {
calcparam();
// rug::setVidParam();
#if CAP_ROGUEVIZ
rogueviz::fixparam();
#endif
#if CAP_GL
if(vid.usingGL) setGLProjection();