1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
4 # include "../config.h"
5 #endif // HAVE_CONFIG_H
7 #include "rendercontrol.hh"
8 #include "truerendercontrol.hh"
10 #include "screeninfo.hh"
15 #endif // HAVE_STDLIB_H
18 #define _(str) gettext(str)
23 RenderControl *RenderControl::getRenderControl(int screen)
25 const ScreenInfo *info = display->screenInfo(screen);
27 // get the visual on the screen and return the correct type of RenderControl
28 int vclass = info->visual()->c_class;
31 return new TrueRenderControl(info);
34 // return new PseudoRenderControl(info);
37 // return new GrayRenderControl(info);
39 printf(_("RenderControl: Unsupported visual %d specified. Aborting.\n"),
45 RenderControl::RenderControl(const ScreenInfo *screen)
48 printf("Initializing RenderControl\n");
53 RenderControl::~RenderControl()
55 printf("Destroying RenderControl\n");