Removed Resource graphic
This commit is contained in:
parent
0234d9bb36
commit
1aff5dabef
3 changed files with 0 additions and 16 deletions
|
@ -959,14 +959,6 @@ global void EditorUpdateDisplay(void)
|
|||
}
|
||||
DrawEditorPanel();
|
||||
|
||||
//
|
||||
// Resource
|
||||
//
|
||||
if (TheUI.Resource.Graphic) {
|
||||
VideoDrawSub(TheUI.Resource.Graphic, 0, 0,
|
||||
TheUI.Resource.Graphic->Width, TheUI.Resource.Graphic->Height,
|
||||
TheUI.ResourceX, TheUI.ResourceY);
|
||||
}
|
||||
if (CursorOn==CursorOnMap) {
|
||||
DrawEditorInfo();
|
||||
}
|
||||
|
|
|
@ -170,7 +170,6 @@ typedef struct _ui_ {
|
|||
int NumPanels; /// Number of panels
|
||||
|
||||
// Resource line
|
||||
GraphicConfig Resource; /// Resource background
|
||||
int ResourceX; /// Resource X position
|
||||
int ResourceY; /// Resource Y position
|
||||
|
||||
|
|
|
@ -171,12 +171,6 @@ global void LoadUserInterface(void)
|
|||
#endif
|
||||
}
|
||||
}
|
||||
if( TheUI.Resource.File ) {
|
||||
TheUI.Resource.Graphic=LoadGraphic(TheUI.Resource.File);
|
||||
#ifdef USE_OPENGL
|
||||
MakeTexture(TheUI.Resource.Graphic,TheUI.Resource.Graphic->Width,TheUI.Resource.Graphic->Height);
|
||||
#endif
|
||||
}
|
||||
|
||||
for( i=0; i<MaxCosts; ++i ) {
|
||||
// FIXME: reuse same graphics?
|
||||
|
@ -540,7 +534,6 @@ global void CleanUserInterface(void)
|
|||
for( i=0; i<TheUI.NumPanels; ++i ) {
|
||||
VideoSaveFree(TheUI.Panel[i].Graphic);
|
||||
}
|
||||
VideoSaveFree(TheUI.Resource.Graphic);
|
||||
|
||||
for( i=0; i<MaxCosts; ++i ) {
|
||||
VideoSaveFree(TheUI.Resources[i].Icon.Graphic);
|
||||
|
|
Loading…
Reference in a new issue