Hi,
I'm trying to write some text on the screen using PocketFrog. I have followed the example of the Conan tutorial.
Display* display = GetDisplay();
HDC hdc = m_background->GetDC();
RECT rcString;
rcString.top = 250;
rcString.left = 0;
rcString.right = 240;
rcString.bottom = 285;
if (hdc) {
SetBkColor(hdc, RGB(248, 252, 248));
SetBkMode(hdc, TRANSPARENT);
SetTextColor(hdc, 0x0000ff);
DrawText(hdc, TEXT("Hello"), -1, &rcString;, DT_CENTER|DT_BOTTOM);
}
display->Update();
but this doesn't work... did I miss something
I'm trying to write some text on the screen using PocketFrog. I have followed the example of the Conan tutorial.
Display* display = GetDisplay();
HDC hdc = m_background->GetDC();
RECT rcString;
rcString.top = 250;
rcString.left = 0;
rcString.right = 240;
rcString.bottom = 285;
if (hdc) {
SetBkColor(hdc, RGB(248, 252, 248));
SetBkMode(hdc, TRANSPARENT);
SetTextColor(hdc, 0x0000ff);
DrawText(hdc, TEXT("Hello"), -1, &rcString;, DT_CENTER|DT_BOTTOM);
}
display->Update();
but this doesn't work... did I miss something