From 696b1f9e7daf2aa09c68a99dffca5cd8efa37c30 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 27 Nov 2018 20:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=BE=E7=A4=BA=E5=99=A8?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/NullWindow/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/example/NullWindow/main.cpp b/example/NullWindow/main.cpp index 874d9ae9..936a68fe 100644 --- a/example/NullWindow/main.cpp +++ b/example/NullWindow/main.cpp @@ -1,5 +1,6 @@ #include #include +#include using namespace hgl; @@ -10,7 +11,9 @@ void put(const struct VideoMode *vm) void put(const struct Display *disp) { - std::cout<<"["<name.c_str()<<"]["<width<<"x"<height<<"]["<x<<","<y<<"]"<width*disp->width)+(disp->height*disp->height))*0.03937008; + + std::cout<<"["<name.c_str()<<"]["<width<<"x"<height<<" mm,"<x<<","<y<<"]"<GetCurVideoMode());