blob: 6f59187903816b1dae95d1b881d41df74f19050c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
//============================================================
//
// drawnone.cpp - stub "nothing" drawer
//
//============================================================
// standard windows headers
#include <windows.h>
#include "drawnone.h"
//============================================================
// drawnone_window_get_primitives
//============================================================
render_primitive_list *renderer_none::get_primitives()
{
auto win = try_getwindow();
if (win == nullptr)
return nullptr;
RECT client;
GetClientRect(std::static_pointer_cast<win_window_info>(win)->platform_window(), &client);
if ((rect_width(&client) == 0) || (rect_height(&client) == 0))
return nullptr;
win->target()->set_bounds(rect_width(&client), rect_height(&client), win->pixel_aspect());
return &win->target()->get_primitives();
}
|