diff --git a/Editor/EditorItems.cpp b/Editor/EditorItems.cpp index 7a6a2ecb..62b0e0d0 100644 --- a/Editor/EditorItems.cpp +++ b/Editor/EditorItems.cpp @@ -531,7 +531,7 @@ void InitEditorItemsInfo(UINT32 uiItemType) sOffset = hVObject->pETRLEObject[item->ubGraphicNum].sOffsetX; sStart = x + (60 - sWidth - sOffset*2) / 2; - if( sWidth ) + if( sWidth && sWidth > 0 ) { BltVideoObjectOutlineFromIndex( eInfo.uiBuffer, uiVideoObjectIndex, item->ubGraphicNum, sStart, y+2, 0, FALSE ); } diff --git a/Standard Gaming Platform/video.cpp b/Standard Gaming Platform/video.cpp index 44fd386e..7dd8c822 100644 --- a/Standard Gaming Platform/video.cpp +++ b/Standard Gaming Platform/video.cpp @@ -2063,10 +2063,13 @@ void RefreshScreen(void *DummyVariable) DirectXAttempt ( ReturnCode, __LINE__, __FILE__ ); } } + +#ifdef USE_VFS catch(CBasicException& ex) { RETHROWEXCEPTION(L"",&ex); } +#endif // // Release temp surface