Got rid of r_softcursor by having the backend always draw the cursor
instead. This fixes graphics glitches in at least ITE. Got rid of r_fullscreen, which wasn't even used anymore anyway. svn-id: r13748
This commit is contained in:
parent
fb1b2efb49
commit
67d82f23d8
4 changed files with 31 additions and 90 deletions
|
@ -53,14 +53,6 @@ static OSystem *_system;
|
|||
const char *test_txt = "The quick brown fox jumped over the lazy dog. She sells sea shells down by the sea shore.";
|
||||
|
||||
int RENDER_Register() {
|
||||
// Register "r_softcursor" cfg cvar
|
||||
RenderModule.r_softcursor = R_SOFTCURSOR_DEFAULT;
|
||||
|
||||
if (CVAR_Register_I(&RenderModule.r_softcursor,
|
||||
"r_softcursor", NULL, R_CVAR_CFG, 0, 1) != R_SUCCESS) {
|
||||
return R_FAILURE;
|
||||
}
|
||||
|
||||
return R_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -105,11 +97,6 @@ int RENDER_Init(OSystem *system) {
|
|||
|
||||
RenderModule.r_backbuf_surface = GFX_GetBackBuffer();
|
||||
|
||||
// Initialize cursor state
|
||||
if (RenderModule.r_softcursor) {
|
||||
SYSINPUT_HideMouse();
|
||||
}
|
||||
|
||||
_system = system;
|
||||
RenderModule.initialized = 1;
|
||||
|
||||
|
@ -186,10 +173,6 @@ int RENDER_DrawScene() {
|
|||
|
||||
INTERFACE_Update(&mouse_pt, UPDATE_MOUSEMOVE);
|
||||
|
||||
if (RenderModule.r_softcursor) {
|
||||
GFX_DrawCursor(backbuf_surface, &mouse_pt);
|
||||
}
|
||||
|
||||
// Display text formatting test, if applicable
|
||||
if (RenderModule.r_flags & RF_TEXT_TEST) {
|
||||
TEXT_Draw(MEDIUM_FONT_ID, backbuf_surface, test_txt, mouse_pt.x, mouse_pt.y,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue