I'm not sure if I'm having a common issue or it's something to do with my hardware. There are times when nothing in the DarkGDK window is shown unless the screen size is stretched or maximized.
For example, this will not display anything unless the DarkGDK is clicked on and resized:
#include "DarkGDK.h"
const int REFRESH_RATE = 60;
int ballX;
int ballY;
void setUp();
void DarkGDK()
{
const int RADIUS = 20;
setUp();
dbCircle(ballX, ballY, RADIUS);
dbSync();
dbWaitKey();
}
void setUp()
{
dbSyncOn();
dbSyncRate( REFRESH_RATE );
ballX = dbScreenWidth() / 2;
ballY = dbScreenHeight() / 2;
}
Where as, this will without me having to resize the window:
#include "DarkGDK.h"
void DarkGDK()
{
int ballX = dbScreenWidth() / 2;
int ballY = dbScreenHeight() / 2;
const int RADIUS = 20;
dbCircle(ballX, ballY, RADIUS);
dbWaitKey(); //( 3500 );
}
Any insight into this problem will be appreciated.