shithub: cstory

Download patch

ref: 92031052356178b7e4a0f3258c436299a484fd55
parent: df2620171f156ca8476e3bf7d140cb2e5ef01f27
author: Clownacy <[email protected]>
date: Tue Feb 19 17:57:00 EST 2019

Shut up some warnings

--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -80,11 +80,15 @@
 
 BOOL StartDirectDraw(int lMagnification, int lColourDepth)
 {
+	(void)lColourDepth;
+
 	//Initialize rendering
 	SDL_InitSubSystem(SDL_INIT_VIDEO);
 	
 	//Create renderer
-	if (gRenderer = SDL_CreateRenderer(gWindow, -1, SDL_RENDERER_ACCELERATED))
+	gRenderer = SDL_CreateRenderer(gWindow, -1, SDL_RENDERER_ACCELERATED);
+
+	if (gRenderer != NULL)
 	{
 		switch (lMagnification)
 		{
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -223,7 +223,7 @@
 			const int letter_x = x + pen_x + face->glyph->bitmap_left;
 			const int letter_y = y + ((FT_MulFix(face->ascender, face->size->metrics.y_scale) - face->glyph->metrics.horiBearingY + (64 / 2)) / 64);
 
-			for (int iy = MAX(-letter_y, 0); letter_y + iy < MIN(letter_y + converted.rows, (unsigned int)surface->h); ++iy)
+			for (int iy = MAX(-letter_y, 0); letter_y + iy < MIN(letter_y + (int)converted.rows, surface->h); ++iy)
 			{
 				if (face->glyph->bitmap.pixel_mode == FT_PIXEL_MODE_LCD)
 				{
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -550,6 +550,9 @@
 					case SDL_SCANCODE_F5:
 						gbUseJoystick = false;
 						break;
+
+					default:
+						break;
 				}
 				break;
 			#else