- remove some dead code.

This commit is contained in:
Christoph Oelckers 2018-03-31 00:25:15 +02:00
commit 6cd26dec01
14 changed files with 10 additions and 140 deletions

View file

@ -70,7 +70,6 @@
#include "v_text.h"
#include "version.h"
#include "win32iface.h"
#include "optwin32.h"
@ -179,26 +178,3 @@ void I_FPSLimit()
}
}
//==========================================================================
//
// BaseWinFB :: ScaleCoordsFromWindow
//
// Given coordinates in window space, return coordinates in what the game
// thinks screen space is.
//
//==========================================================================
extern HWND Window;
void BaseWinFB::ScaleCoordsFromWindow(int16_t &x, int16_t &y)
{
RECT rect;
int TrueHeight = GetTrueHeight();
if (GetClientRect(Window, &rect))
{
x = int16_t(x * Width / (rect.right - rect.left));
y = int16_t(y * TrueHeight / (rect.bottom - rect.top));
}
// Subtract letterboxing borders
y -= (TrueHeight - Height) / 2;
}