mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-18 05:22:42 +01:00
Fix mingw builds
This commit is contained in:
@@ -46,6 +46,7 @@ static void graph_draw_line_a_uint8(rct_drawpixelinfo *dpi, uint8 *history, int
|
|||||||
{
|
{
|
||||||
int i, x, y, lastX, lastY;
|
int i, x, y, lastX, lastY;
|
||||||
lastX = -1;
|
lastX = -1;
|
||||||
|
lastY = -1;
|
||||||
x = baseX;
|
x = baseX;
|
||||||
for (i = count - 1; i >= 0; i--) {
|
for (i = count - 1; i >= 0; i--) {
|
||||||
if (history[i] != 0 && history[i] != 255) {
|
if (history[i] != 0 && history[i] != 255) {
|
||||||
@@ -70,6 +71,7 @@ static void graph_draw_line_b_uint8(rct_drawpixelinfo *dpi, uint8 *history, int
|
|||||||
int i, x, y, lastX, lastY;
|
int i, x, y, lastX, lastY;
|
||||||
|
|
||||||
lastX = -1;
|
lastX = -1;
|
||||||
|
lastY = -1;
|
||||||
x = baseX;
|
x = baseX;
|
||||||
for (i = count - 1; i >= 0; i--) {
|
for (i = count - 1; i >= 0; i--) {
|
||||||
if (history[i] != 0 && history[i] != 255) {
|
if (history[i] != 0 && history[i] != 255) {
|
||||||
@@ -122,6 +124,7 @@ static void graph_draw_line_a_money32(rct_drawpixelinfo *dpi, money32 *history,
|
|||||||
{
|
{
|
||||||
int i, x, y, lastX, lastY;
|
int i, x, y, lastX, lastY;
|
||||||
lastX = -1;
|
lastX = -1;
|
||||||
|
lastY = -1;
|
||||||
x = baseX;
|
x = baseX;
|
||||||
for (i = count - 1; i >= 0; i--) {
|
for (i = count - 1; i >= 0; i--) {
|
||||||
if (history[i] != 0x80000000) {
|
if (history[i] != 0x80000000) {
|
||||||
@@ -146,6 +149,7 @@ static void graph_draw_line_b_money32(rct_drawpixelinfo *dpi, money32 *history,
|
|||||||
int i, x, y, lastX, lastY;
|
int i, x, y, lastX, lastY;
|
||||||
|
|
||||||
lastX = -1;
|
lastX = -1;
|
||||||
|
lastY = -1;
|
||||||
x = baseX;
|
x = baseX;
|
||||||
for (i = count - 1; i >= 0; i--) {
|
for (i = count - 1; i >= 0; i--) {
|
||||||
if (history[i] != 0x80000000) {
|
if (history[i] != 0x80000000) {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
|
|
||||||
int argc;
|
int argc;
|
||||||
char ** argv = (char**)windows_get_command_line_args(&argc);
|
char ** argv = (char**)windows_get_command_line_args(&argc);
|
||||||
int runGame = cmdline_run(argv, argc);
|
int runGame = cmdline_run((const char **)argv, argc);
|
||||||
|
|
||||||
// Free argv
|
// Free argv
|
||||||
for (int i = 0; i < argc; i++) {
|
for (int i = 0; i < argc; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user