diff --git a/src/editor/editloop.cpp b/src/editor/editloop.cpp index 215ff4176..1b0fabbe6 100644 --- a/src/editor/editloop.cpp +++ b/src/editor/editloop.cpp @@ -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(); } diff --git a/src/include/ui.h b/src/include/ui.h index bf26ce3f5..f74734318 100644 --- a/src/include/ui.h +++ b/src/include/ui.h @@ -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 diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index 5acf69159..5de0f8a95 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -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);