Skip to content

Commit 8d22b08

Browse files
committed
fix build errors
1 parent 5f51504 commit 8d22b08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Source/Managers/FrameMan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ void FrameMan::SaveScreenToBitmap() {
619619
// Flip the pixels
620620
std::vector<char*> temp(m_ScreenDumpBuffer->pitch);
621621
char* pixels = reinterpret_cast<char*>(m_ScreenDumpBuffer->pixels);
622-
ssize_t pitch = m_ScreenDumpBuffer->pitch;
623-
for (ssize_t y = 0; y < m_ScreenDumpBuffer->h / 2; ++y) {
622+
size_t pitch = m_ScreenDumpBuffer->pitch;
623+
for (size_t y = 0; y < m_ScreenDumpBuffer->h / 2; ++y) {
624624
std::swap_ranges(pixels + y * pitch, pixels + (y + 1) * pitch, pixels + (m_ScreenDumpBuffer->h - y - 1) * pitch);
625625
}
626626
}

Source/Renderer/GraphicalPrimitive.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "AllegroBitmap.h"
1010

1111
#include "Draw.h"
12+
#include <cmath>
1213

1314
using namespace RTE;
1415

0 commit comments

Comments
 (0)