diff --git a/ref/dx2/r_context.c b/ref/dx2/r_context.c index f20efac4..783208c6 100644 --- a/ref/dx2/r_context.c +++ b/ref/dx2/r_context.c @@ -47,22 +47,17 @@ static const char *R_GetConfigName( void ) static qboolean R_SetDisplayTransform( ref_screen_rotation_t rotate, int offset_x, int offset_y, float scale_x, float scale_y ) { - return false; - qboolean ret = true; - if (rotate > 0) - { - gEngfuncs.Con_Printf("rotation transform not supported\n"); - ret = false; - } - if (offset_x || offset_y) + tr.rotation = rotate; + + if( offset_x || offset_y ) { gEngfuncs.Con_Printf("offset transform not supported\n"); ret = false; } - if (scale_x != 1.0f || scale_y != 1.0f) + if( scale_x != 1.0f || scale_y != 1.0f ) { gEngfuncs.Con_Printf("scale transform not supported\n"); ret = false; diff --git a/ref/dx2/r_local.h b/ref/dx2/r_local.h index 7801e0ef..476b11d3 100644 --- a/ref/dx2/r_local.h +++ b/ref/dx2/r_local.h @@ -186,6 +186,7 @@ typedef struct cl_entity_t *entities; int max_entities; + ref_screen_rotation_t rotation; } dx_globals_t; struct dx_context_s