k_argo Posted July 17, 2008 Report Share Posted July 17, 2008 Mam problem z rysowaniem po ekranie, kiedy chce cos narysowac na pulpicie to nie mam z tym problemu, ale kiedy uzywam handle do gry i probuje wyswietlic napis w oknie gry to nie dziala, do rysowania uzywam: hand := 'Age of Empires II'; hndl := FindWindow(nil, PAnsiChar(hand)); Canvas.Handle:=hndl; Canvas.Font.Color := clRed; Canvas.TextOut(100,100,':)'); ReleaseDC(hndl,Canvas.Handle); Link to comment Share on other sites More sharing options...
xevil21 Posted July 17, 2008 Report Share Posted July 17, 2008 Cześć! sprawdź czy funkcja FindWindow nie zwraca przypadkiem zera, jeśli tak... to znaczy, że podałeś jej złe informacje... Pozdrawiam! Link to comment Share on other sites More sharing options...
Toster Posted July 17, 2008 Report Share Posted July 17, 2008 Gry robia zazwyczaj czestego repainta, tak wiec nie pojdzie ci to. Jak sa refreshe to nie narysujesz, chyba ze bedziesz w timerze czesto to rysowal, efekt bedzie taki ze bedziesz mial migajacy napis. Always Dark<br /> Link to comment Share on other sites More sharing options...
k_argo Posted July 21, 2008 Author Report Share Posted July 21, 2008 Mialem kiedys programik pod TSa, ktory wyswietlal mi na ekranie kto mowi itp. i dzialal, a obraz nie migal, jeszcze przetestuje zmniejszenie czasu w timerze, ale watpie czy to cos zmieni P.S - Cos na zasadzie wyswietlania FPS w Frapsie Link to comment Share on other sites More sharing options...
Firen Posted July 30, 2008 Report Share Posted July 30, 2008 Fraps robi troszke inna sztuczke zeby wyswietlac FPS i nagrywac filmiki Podpina sie pod dllki dx albo ogl, a dokladnie w odpowiednia funcje Present albo SwapBuffers. Zdaje sie, ze modyfikuje je w pamieci. Na google cos powinno o tym byc. Down With The Sickness Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.