From cb5146bb48d6af04cb114b17ca10567180cee658 Mon Sep 17 00:00:00 2001 From: lewa_j Date: Sat, 17 Jan 2026 21:24:10 +0300 Subject: [PATCH] ref: dx2: Display transform rotation (WIP) --- ref/dx2/r_context.c | 13 ++++--------- ref/dx2/r_local.h | 1 + 2 files changed, 5 insertions(+), 9 deletions(-) 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