rename getRenderControl to the more precise createRenderControl
This commit is contained in:
parent
b9a7d8f9ea
commit
59d5199828
3 changed files with 3 additions and 3 deletions
|
@ -165,7 +165,7 @@ DISPLAY environment variable approriately.\n\n"));
|
||||||
_rendercontrol_list = new RenderControl*[ScreenCount(_display)];
|
_rendercontrol_list = new RenderControl*[ScreenCount(_display)];
|
||||||
for (int i = 0; i < ScreenCount(_display); ++i) {
|
for (int i = 0; i < ScreenCount(_display); ++i) {
|
||||||
_screeninfo_list[i] = new ScreenInfo(i);
|
_screeninfo_list[i] = new ScreenInfo(i);
|
||||||
_rendercontrol_list[i] = RenderControl::getRenderControl(i);
|
_rendercontrol_list[i] = RenderControl::createRenderControl(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ extern "C" {
|
||||||
|
|
||||||
namespace otk {
|
namespace otk {
|
||||||
|
|
||||||
RenderControl *RenderControl::getRenderControl(int screen)
|
RenderControl *RenderControl::createRenderControl(int screen)
|
||||||
{
|
{
|
||||||
// get the visual on the screen and return the correct type of RenderControl
|
// get the visual on the screen and return the correct type of RenderControl
|
||||||
int vclass = display->screenInfo(screen)->visual()->c_class;
|
int vclass = display->screenInfo(screen)->visual()->c_class;
|
||||||
|
|
|
@ -46,7 +46,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
virtual ~RenderControl();
|
virtual ~RenderControl();
|
||||||
|
|
||||||
static RenderControl *getRenderControl(int screen);
|
static RenderControl *createRenderControl(int screen);
|
||||||
|
|
||||||
//! Draws a background onto a Surface, as specified by a RenderTexture
|
//! Draws a background onto a Surface, as specified by a RenderTexture
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in a new issue