ref: 4403d10c14b9d3e01dfec2e117a3c32ceef51849
parent: 2f682a102fa5fe22ec82c482fe92be1b5d49bf5d
parent: 70a3badc0d96664af810ba48747b4ca6597fffcc
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon May 4 14:24:23 EDT 2020
Merge branch 'accurate' into portable
--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -416,17 +416,17 @@
void BackupSurface(SurfaceID surf_no, const RECT *rect)
{
- static RenderBackend_Rect scaled_rect; // TODO - Not the original variable name
- scaled_rect.left = rect->left * mag;
- scaled_rect.top = rect->top * mag;
- scaled_rect.right = rect->right * mag;
- scaled_rect.bottom = rect->bottom * mag;
+ static RenderBackend_Rect rcSet; // TODO - Not the original variable name
+ rcSet.left = rect->left * mag;
+ rcSet.top = rect->top * mag;
+ rcSet.right = rect->right * mag;
+ rcSet.bottom = rect->bottom * mag;
// 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;
- 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
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -45,6 +45,7 @@
static const char* const lpWindowName = "Cave Story ~ Doukutsu Monogatari";
#endif
+// Framerate stuff
static unsigned long CountFramePerSecound(void)
{
unsigned long current_tick; // The original name for this variable is unknown
@@ -72,7 +73,6 @@
return max_count;
}
-// Framerate stuff
void PutFramePerSecound(void)
{
if (bFPS)