M
Upps, ne natürlich nicht.
Ich hatte das aus einem vorheringem Test drinn gelassen. :p
Hier nochmal ohne, denn sonst gehts ja nicht und der Standard Font kommt
void Game::TextBlt(int X, int Y,HFONT FontType, COLORREF txtColor, char *Text)
{
HDC DDBS_DC;
if (DDBackSurface->GetDC(&DDBS_DC) == DD_OK) {
HGDIOBJ OldObject = SelectObject(DDBS_DC,FontType);
SetBkMode(DDBS_DC,TRANSPARENT);
SetTextColor(DDBS_DC,txtColor);
TextOut(DDBS_DC, X, Y, Text, strlen(Text));
DDBackSurface->ReleaseDC(DDBS_DC);
SelectObject(DDBS_DC, OldObject);
}
}