mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
* More unused stuff removal
delete:
- giant 'metaheaders' (JA2 All.h, Laptop All.h, etc), preferring to add #includes directly where needed
- unused ExceptionHandling and DbMan translation units
- unused WizShare.h, Bitmap.h, trle.h, video_private.h headers
* remove mentions from vc proj files too
* remove preprocessor conditionals for unused definitions
find . -iname '*.h' -o -iname '*.cpp' -exec unifdef.exe -m -UPRECOMPILED_HEADERS -UJA2_PRECOMPILED_HEADERS -UWIZ8_PRECOMPILED_HEADERS -UPRECOMPILEDHEADERS {} ';'
then manually fixed a couple files the tool errored out on
* yes, the comments too
as title
69 lines
1.7 KiB
C++
69 lines
1.7 KiB
C++
#include "Types.h"
|
|
#include "font.h"
|
|
#include "laptop.h"
|
|
#include "Font Control.h"
|
|
#include "Text.h"
|
|
#include "wordwrap.h"
|
|
|
|
#define BROKEN_LINK__FONT FONT12ARIAL
|
|
#define BROKEN_LINK__COLOR FONT_MCOLOR_BLACK
|
|
|
|
#define BROKEN_LINK__MESSAGE_X LAPTOP_SCREEN_UL_X + 20
|
|
#define BROKEN_LINK__MESSAGE_Y LAPTOP_SCREEN_UL_Y + 50
|
|
#define BROKEN_LINK__MESSAGE_WIDTH (LAPTOP_SCREEN_LR_X - LAPTOP_SCREEN_UL_X)
|
|
|
|
#define BROKEN_LINK__SITE_NOT_FOUND_Y LAPTOP_SCREEN_UL_Y + 65
|
|
|
|
|
|
void DrawBrokenLinkWhiteBackground();
|
|
|
|
|
|
|
|
BOOLEAN EnterBrokenLink()
|
|
{
|
|
// RenderBrokenLink();
|
|
return(TRUE);
|
|
}
|
|
|
|
void ExitBrokenLink()
|
|
{
|
|
}
|
|
|
|
void HandleBrokenLink()
|
|
{
|
|
}
|
|
|
|
|
|
|
|
void RenderBrokenLink()
|
|
{
|
|
//Color fill the laptop white
|
|
DrawBrokenLinkWhiteBackground();
|
|
|
|
SetFontShadow( NO_SHADOW );
|
|
|
|
//Put up a message saying the link is dead
|
|
DisplayWrappedString(BROKEN_LINK__MESSAGE_X, BROKEN_LINK__MESSAGE_Y, BROKEN_LINK__MESSAGE_WIDTH, 2, BROKEN_LINK__FONT, BROKEN_LINK__COLOR, BrokenLinkText[ BROKEN_LINK_TXT_ERROR_404 ], FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
|
|
|
//Put up a message saying the link is dead
|
|
DisplayWrappedString(BROKEN_LINK__MESSAGE_X, BROKEN_LINK__SITE_NOT_FOUND_Y, BROKEN_LINK__MESSAGE_WIDTH, 2, BROKEN_LINK__FONT, BROKEN_LINK__COLOR, BrokenLinkText[ BROKEN_LINK_TXT_SITE_NOT_FOUND ], FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
|
|
|
SetFontShadow( DEFAULT_SHADOW );
|
|
|
|
InvalidateRegion(0,0,SCREEN_WIDTH, SCREEN_HEIGHT);
|
|
}
|
|
|
|
|
|
void DrawBrokenLinkWhiteBackground()
|
|
{
|
|
ColorFillVideoSurfaceArea( FRAME_BUFFER, LAPTOP_SCREEN_UL_X, LAPTOP_SCREEN_WEB_UL_Y, LAPTOP_SCREEN_LR_X, LAPTOP_SCREEN_WEB_LR_Y /*- 55*/, Get16BPPColor( FROMRGB( 255, 255, 255) ) );
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|