mirror of https://github.com/bsnes-emu/bsnes.git
17 lines
486 B
C++
Executable File
17 lines
486 B
C++
Executable File
void Viewport::create(Window &parent, unsigned x, unsigned y, unsigned width, unsigned height) {
|
|
viewport->setParent(parent.window->container);
|
|
viewport->setGeometry(x, y, width, height);
|
|
viewport->setAttribute(Qt::WA_PaintOnScreen, true);
|
|
viewport->setStyleSheet("background: #000000");
|
|
viewport->show();
|
|
}
|
|
|
|
uintptr_t Viewport::handle() {
|
|
return (uintptr_t)viewport->winId();
|
|
}
|
|
|
|
Viewport::Viewport() {
|
|
viewport = new Viewport::Data(*this);
|
|
widget->widget = viewport;
|
|
}
|