Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.



This topic is 5737 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Whenever I try to draw text the game crashes. Here is my code. What am I doing wrong?
	LOGFONT defaultFont = {
		18,							//height
		0,							//width
		0,							//lfEscapement
		0,							//lfOrientation
		FW_BOLD,					//lfWeight
		FALSE,						//lfItalic
		FALSE,						//lfUnderline
		FALSE,						//lfStrikeOut
		DEFAULT_CHARSET,			//lfCharSet
		OUT_DEFAULT_PRECIS,			//lfOutPrecision
		CLIP_DEFAULT_PRECIS,		//lfClipPrecision
		DEFAULT_PITCH,				//lfPitchAndFamily
		"Courier New"				//lfFaceName[LF_FACESIZE]
and then...

	RECT font_rect = {0, 500, 400, 600};
	m_pFFont->DrawText("Test", -1, &font_rect, DT_LEFT, 0xFFFFFFFF);
[edited by - Newbie00 on March 4, 2004 11:02:25 PM] [edited by - Newbie00 on March 4, 2004 11:02:53 PM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!