mirror of https://github.com/odrling/Aegisub
Minor Linux fixes (thanks Azzy)
Originally committed to SVN as r539.
This commit is contained in:
parent
fc531f7e7f
commit
407cd603b2
|
@ -34,7 +34,6 @@ aegisub_SOURCES = about.cpp \
|
|||
audio_provider_lavc.cpp \
|
||||
audio_provider_ram.cpp \
|
||||
audio_provider_stream.cpp \
|
||||
auto4_base.cpp \
|
||||
automation.cpp \
|
||||
automation_filter.cpp \
|
||||
automation_gui.cpp \
|
||||
|
|
|
@ -80,7 +80,7 @@ void AssFile::Load (const wxString _filename,const wxString charset) {
|
|||
#ifdef WIN32
|
||||
file = _tfopen(_filename.c_str(), _T("r"));
|
||||
#else
|
||||
file = fopen(_filrname.mb_str(wxConvFileName), "r");
|
||||
file = fopen(_filename.mb_str(*wxConvFileName), "r");
|
||||
#endif
|
||||
if (!file) {
|
||||
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();
|
||||
|
||||
// Set the size for this control
|
||||
SetSizeHints(w,h,w,h);
|
||||
SetClientSize(w,h);
|
||||
int _w,_h;
|
||||
GetSize(&_w,&_h);
|
||||
|
|
Loading…
Reference in New Issue