summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2013-10-20 20:15:22 +0400
committerAndrey Nazarov <skuller@skuller.net>2013-10-20 20:15:22 +0400
commitc9129395e9b4fc76ff501dabacbea5d088d2dfcc (patch)
tree96bc676e0dc65a90d480d2f03dfb2baf375d188b /inc
parent35a992e557d09c58d6cd21c2650e3798f5a6e885 (diff)
Implement automatic screen scaling.
Automatically scale 1x, 2x or 4x when ‘(con|scr|ui)_scale’ variables are set to 0, depending on current display resolution.
Diffstat (limited to 'inc')
-rw-r--r--inc/refresh/refresh.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/refresh/refresh.h b/inc/refresh/refresh.h
index a80329f..f4422d3 100644
--- a/inc/refresh/refresh.h
+++ b/inc/refresh/refresh.h
@@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef REFRESH_H
#define REFRESH_H
+#include "common/cvar.h"
#include "common/error.h"
#define MAX_DLIGHTS 32
@@ -210,7 +211,8 @@ void R_ClearColor(void);
void R_SetAlpha(float clpha);
void R_SetColor(uint32_t color);
void R_SetClipRect(const clipRect_t *clip);
-void R_SetScale(float *scale);
+float R_ClampScale(cvar_t *var);
+void R_SetScale(float scale);
void R_DrawChar(int x, int y, int flags, int ch, qhandle_t font);
int R_DrawString(int x, int y, int flags, size_t maxChars,
const char *string, qhandle_t font); // returns advanced x coord