mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Use existing viewingrange and yxaspect for showview so it matches that of the main view
This fixes fov when using showview in EVENT_DISPLAYROOMS to do layered rendering, but it might not be right for uses of showview that simply display picture-in-picture stuff on screen. git-svn-id: https://svn.eduke32.com/eduke32@7350 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e0b5e32be2
commit
4b1d268908
1 changed files with 5 additions and 6 deletions
|
@ -1205,13 +1205,11 @@ LUNATIC_EXTERN void G_ShowView(vec3_t vec, fix16_t a, fix16_t horiz, int sect, i
|
||||||
|
|
||||||
horiz = fix16_clamp(horiz, F16(HORIZ_MIN), F16(HORIZ_MAX));
|
horiz = fix16_clamp(horiz, F16(HORIZ_MIN), F16(HORIZ_MAX));
|
||||||
|
|
||||||
int const onewaspect = newaspect_enable;
|
int const viewingRange = viewingrange;
|
||||||
newaspect_enable = r_usenewaspect;
|
int const yxAspect = yxaspect;
|
||||||
setaspect_new_use_dimen = 1;
|
|
||||||
videoSetViewableArea(x1,y1,x2,y2);
|
|
||||||
setaspect_new_use_dimen = 0;
|
|
||||||
newaspect_enable = onewaspect;
|
|
||||||
|
|
||||||
|
videoSetViewableArea(x1,y1,x2,y2);
|
||||||
|
renderSetAspect(viewingRange, yxAspect);
|
||||||
int const smoothratio = calc_smoothratio(totalclock, ototalclock);
|
int const smoothratio = calc_smoothratio(totalclock, ototalclock);
|
||||||
G_DoInterpolations(smoothratio);
|
G_DoInterpolations(smoothratio);
|
||||||
G_HandleMirror(vec.x, vec.y, vec.z, a, horiz, smoothratio);
|
G_HandleMirror(vec.x, vec.y, vec.z, a, horiz, smoothratio);
|
||||||
|
@ -1229,6 +1227,7 @@ LUNATIC_EXTERN void G_ShowView(vec3_t vec, fix16_t a, fix16_t horiz, int sect, i
|
||||||
renderDrawMasks();
|
renderDrawMasks();
|
||||||
G_RestoreInterpolations();
|
G_RestoreInterpolations();
|
||||||
G_UpdateScreenArea();
|
G_UpdateScreenArea();
|
||||||
|
renderSetAspect(viewingRange, yxAspect);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Screen_Play(void)
|
void Screen_Play(void)
|
||||||
|
|
Loading…
Reference in a new issue