mirror of https://github.com/odrling/Aegisub
__WIN32__ / WIN32 -> __WINDOWS__
Originally committed to SVN as r381.
This commit is contained in:
parent
3a260cf0ce
commit
05aa32cbe4
|
@ -64,7 +64,7 @@ void AegisubLocale::Init(int language) {
|
|||
if (locale) delete locale;
|
||||
curCode = language;
|
||||
locale = new wxLocale(language);
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
locale->AddCatalogLookupPathPrefix(AegisubApp::folderName + _T("locale/"));
|
||||
#endif
|
||||
locale->AddCatalog(_T("aegisub"));
|
||||
|
|
|
@ -75,7 +75,7 @@ PortAudioPlayer::~PortAudioPlayer() {
|
|||
if (!--pa_refcount) Pa_Terminate();
|
||||
}
|
||||
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
typedef unsigned __int64 uint64_t;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
#include "string_codec.h"
|
||||
#include "vfr.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
#include <windows.h>
|
||||
#include <wchar.h>
|
||||
#else
|
||||
|
@ -297,7 +297,7 @@ namespace AutomationHelper {
|
|||
|
||||
wxLogDebug(_T("text_extents for: %s:%f:%d%d%d%d:%f:%f:%d:%d"), fontname.c_str(), fontsize, bold, italic, underline, strikeout, scale_x, scale_y, spacing, charset);
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
HDC thedc = CreateCompatibleDC(0);
|
||||
if (!thedc) return 0;
|
||||
SetMapMode(thedc, MM_TEXT);
|
||||
|
@ -353,7 +353,7 @@ namespace AutomationHelper {
|
|||
DeleteObject(thedc);
|
||||
DeleteObject(thefont);
|
||||
|
||||
#else // not WIN32
|
||||
#else // not __WINDOWS__
|
||||
wxMemoryDC thedc;
|
||||
|
||||
// fix fontsize to be 72 DPI
|
||||
|
|
|
@ -355,7 +355,7 @@ void DialogAutomationManager::EditScript(AutomationScript *script)
|
|||
wxString editor;
|
||||
if (!Options.IsDefined(_T("automation script editor")) || wxGetKeyState(WXK_SHIFT)) {
|
||||
wxMessageBox(_T("You have not selected a script editor yet. Please select your script editor in the next window. It's recommended to use an editor with syntax highlighting for Lua scripts."), _T("Aegisub"), wxOK|wxICON_INFORMATION);
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
editor = wxFileSelector(_T("Select script editor"), _T(""), _T("C:\\Windows\\Notepad.exe"), _T("exe"), _T("Execatuables (*.exe)|*.exe|All files (*.*)|*.*"), wxOPEN|wxFILE_MUST_EXIST);
|
||||
#else
|
||||
char *env_editor = getenv("EDITOR");
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
// Includes
|
||||
#include <wx/config.h>
|
||||
#include <wx/filename.h>
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
#include <shlobj.h>
|
||||
#endif
|
||||
#include "ass_override.h"
|
||||
|
@ -220,7 +220,7 @@ wxArrayString FontsCollectorThread::GetFontFiles (wxString face) {
|
|||
///////////////////////
|
||||
// Collect font files
|
||||
void FontsCollectorThread::CollectFontData () {
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
// Prepare key
|
||||
wxRegKey *reg = new wxRegKey(_T("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"));
|
||||
// Try win9x
|
||||
|
@ -325,7 +325,7 @@ void FontsCollectorThread::Collect() {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
// Collect font data
|
||||
wxMutexGuiEnter();
|
||||
LogBox->SetDefaultStyle(wxTextAttr(wxColour(0,0,180)));
|
||||
|
|
|
@ -87,7 +87,7 @@ bool AegisubApp::OnInit() {
|
|||
Hotkeys.SetFile(folderName + _T("/hotkeys.dat"));
|
||||
Hotkeys.Load();
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
// Set locale
|
||||
int lang = Options.AsInt(_T("Locale Code"));
|
||||
if (lang == -1) {
|
||||
|
@ -228,7 +228,7 @@ int AegisubApp::OnRun() {
|
|||
/////////////////////////////////
|
||||
// Registry program to filetypes
|
||||
void AegisubApp::RegistryAssociate () {
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
// Command to open with this
|
||||
wxString command;
|
||||
command << _T("\"") << fullPath << _T("\" \"%1\"");
|
||||
|
@ -304,7 +304,7 @@ void AegisubApp::GetFullPath(wxString arg) {
|
|||
///////////////////////////////////
|
||||
// Gets folder name from full path
|
||||
void AegisubApp::GetFolderName () {
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
folderName = _T("");
|
||||
wxFileName path(fullPath);
|
||||
#else
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#ifdef HAVE_ASA_ASA_H
|
||||
# include <asa/asa.h>
|
||||
#else
|
||||
# ifdef WIN32
|
||||
# ifdef __WINDOWS__
|
||||
# include <asa.h>
|
||||
# endif
|
||||
#endif
|
||||
|
|
|
@ -66,7 +66,7 @@ int CountMatches(wxString parent,wxString child) {
|
|||
|
||||
///////////////
|
||||
// Copy a file
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
bool Copy(wxString src,wxString dst) {
|
||||
BOOL result = CopyFile(src.wc_str(),dst.wc_str(),false);
|
||||
return (result != 0);
|
||||
|
@ -77,7 +77,7 @@ bool Copy(wxString src,wxString dst) {
|
|||
// Backup a file
|
||||
bool Backup(wxString src,wxString dst) {
|
||||
// Windows
|
||||
#if defined(__WIN32__)
|
||||
#if defined(__WINDOWS__)
|
||||
return Copy(src,dst);
|
||||
|
||||
// Linux
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include <wx/datetime.h>
|
||||
#include "version.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef __WINDOWS__
|
||||
// This include is generated by build/make-svn-rev-header.py
|
||||
// That script should be run before every build is initiated
|
||||
#include "build/svn-revision.h"
|
||||
|
|
|
@ -190,7 +190,7 @@ void VideoDisplay::SetVideo(const wxString &filename) {
|
|||
// Close mkv
|
||||
MatroskaWrapper::wrapper.Close();
|
||||
}
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
else if (ext == _T(".avi")) KeyFrames = VFWWrapper::GetKeyFrames(filename);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
///////////
|
||||
// Headers
|
||||
#include <wx/wxprec.h>
|
||||
#ifdef __WIN32__
|
||||
#ifdef __WINDOWS__
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
|
Loading…
Reference in New Issue