int gethresolution(void)
{
- return hresolution;
+ int h = currprefs.gfx_resolution;
+ if (autoswitch_old_resolution == RES_HIRES && currprefs.gfx_resolution == RES_SUPERHIRES) {
+ h--;
+ }
+ return h;
}
static void sethresolution(void)
struct vidbuf_description *avidinfo = &adisplays[monid].gfxvidinfo;
int v, cx, cy, cw, ch;
bool native = isnativevidbuf(monid);
- int hres = gethresolution();
cx = *cxp;
cy = *cyp;
if (scalemode) {
int cw, ch, cx, cy, cv = 0, crealh = 0;
- int hres = currprefs.gfx_resolution;
+ int hres = gethresolution();
int vres = currprefs.gfx_vresolution;
static int oxmult, oymult;