shithub: candycrisis

Download patch

ref: 95824b42340173ba8c4162e733d5144f0123d1d3
parent: 02db2e7cc119355cdb4994cd588fd38411f3195b
author: Iliyas Jorio <iliyas@jor.io>
date: Wed Feb 2 14:31:43 EST 2022

Fix SharewareVictory

--- a/src/level.cpp
+++ b/src/level.cpp
@@ -1051,7 +1051,6 @@
 	{ "Please Register!", "The full version of", "Candy Crisis features", "twelve stages and also", "includes two player", "mode." } 		  
 };
 
-/*
 void SharewareVictory( void )
 {
 	SkittlesFontPtr textFont, titleFont;
@@ -1090,12 +1089,12 @@
 	DrawPICTInSurface( g_frontSurface, picSharewareVictory );
     SDLU_Present();
 	
-	backBuffer = SDLU_InitSurface( &bufferDstSDLRect, 16 );
+	backBuffer = SDLU_InitSurface( &bufferDstSDLRect, 32 );
 	
 	SDLU_BlitSurface( g_frontSurface, &bufferSrcSDLRect,
 	                  backBuffer,   &bufferDstSDLRect   );
 
-	frontBuffer = SDLU_InitSurface( &bufferDstSDLRect, 16 );
+	frontBuffer = SDLU_InitSurface( &bufferDstSDLRect, 32 );
 	
 	QuickFadeIn( NULL );	
 
@@ -1123,13 +1122,13 @@
 				{
 					text = gameCredits[y][0];
 					thisFade = fade[cPoint.v >> 2];
-					
+
 					while( *text )
 					{
-						SurfaceBlitWeightedCharacter( titleFont, *text++, &cPoint, 31, 31, 0, thisFade );
+						SurfaceBlitWeightedCharacter( titleFont, *text++, &cPoint, 255, 255, 0, _5TO8(thisFade) );
 					}
 				}
-				
+
 				lPoint.v += 50;
 			}
 			
@@ -1145,10 +1144,10 @@
 					{
 						text = gameCredits[y][x];
 						thisFade = fade[cPoint.v >> 2];
-						
+
 						while( *text )
 						{
-							SurfaceBlitWeightedCharacter( textFont, *text++, &cPoint, 31, 31, 0, thisFade );
+							SurfaceBlitWeightedCharacter( textFont, *text++, &cPoint, 255, 255, 0, _5TO8(thisFade) );
 						}
 					}
 
@@ -1184,7 +1183,6 @@
 	SDL_FreeSurface( backBuffer );
 	SDL_FreeSurface( frontBuffer );
 }
-*/
 
 void RegisteredVictory( void )
 {
--- a/src/level.h
+++ b/src/level.h
@@ -10,6 +10,7 @@
 void IncrementLevel( void );
 void TotalVictory( void );
 void RegisteredVictory( void );
+void SharewareVictory( void );
 void InitStage( void );
 void DrawStage( void );
 void GameStartMenu( void );