1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/games/xlogical/files/patch-menuentry.cpp
John Marino fac4ecc6a6 games/xlogical: stage support and unbreak on F10+
This port needed a lot more help than the PR indicated:
 * Full stage support
 * DESTDIR had to be patched in, there was only a placeholder
 * It didn't build on clang because there was no header for rand function
 * Almost very patch had DOS carriage returns (stripped)
 * Needed USES+=dos2unix so patches apply (caused revbump)
 * NOPORTDOCS needed to be replaced by PORT_OPTIONS - DOCS
 * post-extract target was muted, as is the norm
 * Previous install patches reworked to fit STAGE support better

The PR updated:
 * Use of autotools
 * conversion of USE_GMAKE and USE_BZIP2 was done previously
 * GPLv2 license was added

PR:		188798
Submitted by:	maintainer (Aaron Baugher)
Rest by:	marino
2014-06-10 20:49:51 +00:00

29 lines
939 B
C++

--- menuentry.cpp.orig 2007-11-06 00:04:44.000000000 +0100
+++ menuentry.cpp 2007-11-06 00:06:49.000000000 +0100
@@ -104,14 +104,14 @@
if (fOnOff)
{
font->render_string(
- "*",
+ (char *)"*",
fX + graphDriver->graph_hi_font( )->stringLen( const_cast<char *>(fText.c_str() ) ),
fY );
} else {
graphDriver->graph_clear_rect(
fX + graphDriver->graph_hi_font()->stringLen( const_cast<char *>(fText.c_str() ) ),
fY,
- graphDriver->graph_hi_font()->stringLen( "*" ),
+ graphDriver->graph_hi_font()->stringLen((char *) "*" ),
graphDriver->graph_hi_font()->get_height() );
}
@@ -131,7 +131,7 @@
graphDriver->graph_clear_rect(
fX + graphDriver->graph_hi_font()->stringLen( const_cast<char *>(fText.c_str() ) ),
fY,
- graphDriver->graph_hi_font()->stringLen( "*" ),
+ graphDriver->graph_hi_font()->stringLen((char *) "*" ),
graphDriver->graph_hi_font()->get_height() );
switch( aKeyval )