diff options
author | Tim Angus <tim@ngus.net> | 2009-10-12 22:36:35 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:48 +0000 |
commit | 35249fc2c3762fe1690559772a6d89724fb7469c (patch) | |
tree | efad01bc9142be45298594fbf8c01fdcca5e8237 /src/client | |
parent | 6e5fbea644646afa82130be9bf366d866c9838ca (diff) |
* Add [trap_R|RE]_SetClipRegion to prevent rendering outside a specified area
* Rewrite CG_DrawTeamSpectators to scroll on a pixel basis rather than a character basis
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/cl_cgame.c | 3 | ||||
-rw-r--r-- | src/client/cl_ui.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/client/cl_cgame.c b/src/client/cl_cgame.c index d30d4ac0..8bf10f6d 100644 --- a/src/client/cl_cgame.c +++ b/src/client/cl_cgame.c @@ -587,6 +587,9 @@ intptr_t CL_CgameSystemCalls( intptr_t *args ) { case CG_R_SETCOLOR: re.SetColor( VMA(1) ); return 0; + case CG_R_SETCLIPREGION: + re.SetClipRegion( VMA(1) ); + return 0; case CG_R_DRAWSTRETCHPIC: re.DrawStretchPic( VMF(1), VMF(2), VMF(3), VMF(4), VMF(5), VMF(6), VMF(7), VMF(8), args[9] ); return 0; diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c index caf55ef0..1be4f9f3 100644 --- a/src/client/cl_ui.c +++ b/src/client/cl_ui.c @@ -820,6 +820,10 @@ intptr_t CL_UISystemCalls( intptr_t *args ) { re.SetColor( VMA(1) ); return 0; + case UI_R_SETCLIPREGION: + re.SetClipRegion( VMA(1) ); + return 0; + case UI_R_DRAWSTRETCHPIC: re.DrawStretchPic( VMF(1), VMF(2), VMF(3), VMF(4), VMF(5), VMF(6), VMF(7), VMF(8), args[9] ); return 0; |