How do I set screen size using winbgi? (without graphics.h, winbgim, but pure winbgi)

187 Views Asked by At

How do I set window size using winbgi?

Default window size is left half of my screen= Complile result

MY professor wants me to 'only' use winbgi

WinBGI& win = WinBGI::instance();
// then what??

winbgi does not include initwindow() that can set window size

int initwindow (int width, int height, const char* title="Windows BGI", int left=0, int top=0, bool dbflag=false, bool closeflag=true);

I've looked up the documention and I couldn't find one

bgi

I want to set BGI window size (height, width)

I am using Visual Studio 2022

1

There are 1 best solutions below

2
Sid On

Man, the education system is weird when your professors want you to use an extremely outdated version of a graphics library.