forked from mia/Aegisub
Minor Linux fixes (thanks Azzy)
Originally committed to SVN as r539.
This commit is contained in:
parent
fc531f7e7f
commit
407cd603b2
3 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,6 @@ aegisub_SOURCES = about.cpp \
|
||||||
audio_provider_lavc.cpp \
|
audio_provider_lavc.cpp \
|
||||||
audio_provider_ram.cpp \
|
audio_provider_ram.cpp \
|
||||||
audio_provider_stream.cpp \
|
audio_provider_stream.cpp \
|
||||||
auto4_base.cpp \
|
|
||||||
automation.cpp \
|
automation.cpp \
|
||||||
automation_filter.cpp \
|
automation_filter.cpp \
|
||||||
automation_gui.cpp \
|
automation_gui.cpp \
|
||||||
|
|
|
@ -80,7 +80,7 @@ void AssFile::Load (const wxString _filename,const wxString charset) {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
file = _tfopen(_filename.c_str(), _T("r"));
|
file = _tfopen(_filename.c_str(), _T("r"));
|
||||||
#else
|
#else
|
||||||
file = fopen(_filrname.mb_str(wxConvFileName), "r");
|
file = fopen(_filename.mb_str(*wxConvFileName), "r");
|
||||||
#endif
|
#endif
|
||||||
if (!file) {
|
if (!file) {
|
||||||
throw _T("Unable to open file \"") + _filename + _T("\". Check if it exists and if you have permissions to read it.");
|
throw _T("Unable to open file \"") + _filename + _T("\". Check if it exists and if you have permissions to read it.");
|
||||||
|
|
|
@ -138,6 +138,7 @@ void VideoDisplay::UpdateSize() {
|
||||||
h = provider->GetHeight();
|
h = provider->GetHeight();
|
||||||
|
|
||||||
// Set the size for this control
|
// Set the size for this control
|
||||||
|
SetSizeHints(w,h,w,h);
|
||||||
SetClientSize(w,h);
|
SetClientSize(w,h);
|
||||||
int _w,_h;
|
int _w,_h;
|
||||||
GetSize(&_w,&_h);
|
GetSize(&_w,&_h);
|
||||||
|
|
Loading…
Reference in a new issue