mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed a couple of fixes from the previous commit
This commit is contained in:
parent
2bc86b52c8
commit
47e9975e90
2 changed files with 2 additions and 2 deletions
|
@ -938,7 +938,7 @@ int FGLRenderer::PTM_BestColor (const uint32_t *pal_in, int r, int g, int b, int
|
||||||
static bool firstTime = true;
|
static bool firstTime = true;
|
||||||
static float trackpowtable = 0.;
|
static float trackpowtable = 0.;
|
||||||
|
|
||||||
double fbestdist = (double)(1<<53), fdist;
|
double fbestdist = DBL_MAX, fdist;
|
||||||
int bestcolor = 0;
|
int bestcolor = 0;
|
||||||
|
|
||||||
if (firstTime || trackpowtable != gl_paltonemap_powtable)
|
if (firstTime || trackpowtable != gl_paltonemap_powtable)
|
||||||
|
|
|
@ -1223,7 +1223,7 @@ void D3DFB::Flip()
|
||||||
{
|
{
|
||||||
RECT box;
|
RECT box;
|
||||||
GetClientRect(Window, &box);
|
GetClientRect(Window, &box);
|
||||||
if (box.right > 0 && (Width != box.right || Height != box.bottom))
|
if (box.right > 0 && box.bottom > 0 && (Width != box.right || Height != box.bottom))
|
||||||
{
|
{
|
||||||
Resize(box.right, box.bottom);
|
Resize(box.right, box.bottom);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue