Merge branch 'accurate' into portable
This commit is contained in:
commit
4403d10c14
2 changed files with 8 additions and 8 deletions
14
src/Draw.cpp
14
src/Draw.cpp
|
@ -416,17 +416,17 @@ BOOL MakeSurface_Generic(int bxsize, int bysize, SurfaceID surf_no, BOOL bSystem
|
||||||
|
|
||||||
void BackupSurface(SurfaceID surf_no, const RECT *rect)
|
void BackupSurface(SurfaceID surf_no, const RECT *rect)
|
||||||
{
|
{
|
||||||
static RenderBackend_Rect scaled_rect; // TODO - Not the original variable name
|
static RenderBackend_Rect rcSet; // TODO - Not the original variable name
|
||||||
scaled_rect.left = rect->left * mag;
|
rcSet.left = rect->left * mag;
|
||||||
scaled_rect.top = rect->top * mag;
|
rcSet.top = rect->top * mag;
|
||||||
scaled_rect.right = rect->right * mag;
|
rcSet.right = rect->right * mag;
|
||||||
scaled_rect.bottom = rect->bottom * mag;
|
rcSet.bottom = rect->bottom * mag;
|
||||||
|
|
||||||
// Do not draw invalid RECTs
|
// Do not draw invalid RECTs
|
||||||
if (scaled_rect.right <= scaled_rect.left || scaled_rect.bottom <= scaled_rect.top)
|
if (rcSet.right <= rcSet.left || rcSet.bottom <= rcSet.top)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RenderBackend_Blit(framebuffer, &scaled_rect, surf[surf_no], scaled_rect.left, scaled_rect.top, FALSE);
|
RenderBackend_Blit(framebuffer, &rcSet, surf[surf_no], rcSet.left, rcSet.top, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PutBitmap3(const RECT *rcView, int x, int y, const RECT *rect, SurfaceID surf_no) // Transparency
|
void PutBitmap3(const RECT *rcView, int x, int y, const RECT *rect, SurfaceID surf_no) // Transparency
|
||||||
|
|
|
@ -45,6 +45,7 @@ static const char* const lpWindowName = "洞窟物語"; // "Cave Story"
|
||||||
static const char* const lpWindowName = "Cave Story ~ Doukutsu Monogatari";
|
static const char* const lpWindowName = "Cave Story ~ Doukutsu Monogatari";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Framerate stuff
|
||||||
static unsigned long CountFramePerSecound(void)
|
static unsigned long CountFramePerSecound(void)
|
||||||
{
|
{
|
||||||
unsigned long current_tick; // The original name for this variable is unknown
|
unsigned long current_tick; // The original name for this variable is unknown
|
||||||
|
@ -72,7 +73,6 @@ static unsigned long CountFramePerSecound(void)
|
||||||
return max_count;
|
return max_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Framerate stuff
|
|
||||||
void PutFramePerSecound(void)
|
void PutFramePerSecound(void)
|
||||||
{
|
{
|
||||||
if (bFPS)
|
if (bFPS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue