(svn r12944) -Codechange: use rev.h instead of externs at many places
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
#include "../../stdafx.h"
|
||||
#include "../../debug.h"
|
||||
#include "../../rev.h"
|
||||
#include "../../core/geometry_type.hpp"
|
||||
#include "cocoa_v.h"
|
||||
#include "../../core/math_func.hpp"
|
||||
@@ -410,9 +411,6 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace()
|
||||
@end
|
||||
|
||||
|
||||
extern const char _openttd_revision[];
|
||||
|
||||
|
||||
void WindowQuartzSubdriver::GetDeviceInfo()
|
||||
{
|
||||
CFDictionaryRef cur_mode;
|
||||
|
@@ -39,6 +39,7 @@
|
||||
|
||||
#include "../../stdafx.h"
|
||||
#include "../../debug.h"
|
||||
#include "../../rev.h"
|
||||
#include "../../core/geometry_type.hpp"
|
||||
#include "cocoa_v.h"
|
||||
#include "../../core/math_func.hpp"
|
||||
@@ -331,10 +332,6 @@ static bool _resize_icon[] = {
|
||||
};
|
||||
|
||||
|
||||
|
||||
extern const char _openttd_revision[];
|
||||
|
||||
|
||||
void WindowQuickdrawSubdriver::GetDeviceInfo()
|
||||
{
|
||||
CFDictionaryRef cur_mode;
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#include "../gfx_func.h"
|
||||
#include "../sdl.h"
|
||||
#include "../variables.h"
|
||||
#include "../rev.h"
|
||||
#include "../blitter/factory.hpp"
|
||||
#include "../network/network.h"
|
||||
#include "../core/math_func.hpp"
|
||||
@@ -186,7 +187,6 @@ static void GetAvailableVideoMode(int *w, int *h)
|
||||
|
||||
static bool CreateMainSurface(int w, int h)
|
||||
{
|
||||
extern const char _openttd_revision[];
|
||||
SDL_Surface *newscreen, *icon;
|
||||
char caption[50];
|
||||
int bpp = BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth();
|
||||
|
@@ -5,6 +5,7 @@
|
||||
#include "../gfx_func.h"
|
||||
#include "../variables.h"
|
||||
#include "../win32.h"
|
||||
#include "../rev.h"
|
||||
#include "../blitter/factory.hpp"
|
||||
#include "../network/network.h"
|
||||
#include "../core/math_func.hpp"
|
||||
@@ -282,7 +283,6 @@ static bool MakeWindow(bool full_screen)
|
||||
ShowWindow(_wnd.main_wnd, SW_SHOWNORMAL); // remove maximize-flag
|
||||
SetWindowPos(_wnd.main_wnd, 0, x, y, w, h, SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER);
|
||||
} else {
|
||||
extern const char _openttd_revision[];
|
||||
TCHAR Windowtitle[50];
|
||||
|
||||
_sntprintf(Windowtitle, sizeof(Windowtitle), _T("OpenTTD %s"), MB_TO_WIDE(_openttd_revision));
|
||||
|
Reference in New Issue
Block a user