Subversion Repositories tpanel

Rev

Rev 300 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 300 Rev 317
Line 29... Line 29...
29
#include "tsystemsound.h"
29
#include "tsystemsound.h"
30
#include "ttpinit.h"
30
#include "ttpinit.h"
31
#include "tconfig.h"
31
#include "tconfig.h"
32
#include "tresources.h"
32
#include "tresources.h"
33
#include "tpagemanager.h"
33
#include "tpagemanager.h"
-
 
34
#include "tintborder.h"
34
#include "terror.h"
35
#include "terror.h"
35
 
36
 
36
using std::string;
37
using std::string;
37
using std::vector;
38
using std::vector;
38
 
39
 
Line 169... Line 170...
169
    {
170
    {
170
        MSG_DEBUG("No border defined.");
171
        MSG_DEBUG("No border defined.");
171
        return false;
172
        return false;
172
    }
173
    }
173
 
174
 
-
 
175
    // First we look into our internal border table
-
 
176
    Border::TIntBorder *intBorder = new Border::TIntBorder;
-
 
177
 
-
 
178
    if (intBorder && intBorder->drawBorder(bm, pinfo.sr[instance].bs, pinfo.width, pinfo.height, pinfo.sr[instance].cb))
-
 
179
    {
-
 
180
        delete intBorder;
-
 
181
        return true;
-
 
182
    }
-
 
183
 
-
 
184
    if (intBorder)
-
 
185
    {
-
 
186
        delete intBorder;
-
 
187
        intBorder = nullptr;
-
 
188
    }
-
 
189
 
174
    // Try to find the border in the system table
190
    // Try to find the border in the system table
175
    BORDER_t bd, bda;
191
    BORDER_t bd, bda;
176
    bool classExist = (gPageManager && gPageManager->getSystemDraw());
192
    bool classExist = (gPageManager && gPageManager->getSystemDraw());
177
 
193
 
178
    if (!classExist)
194
    if (!classExist)