![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
codemaniac
Join Date: Dec 2007
Posts: 9
Rep Power: 0
![]() |
hello... i'm writing a C++/Win32 connect four program... its still in development... but the source can be found here[link]... i'm doing alright... except with updating the board... I used InvalidateRect(hWnd,NULL,true) to update it... the problem is that this updates the entire screen and causes it to flicker... does anyone know any better methods?
|
|
|
|
|
|
#2 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 754
Rep Power: 3
![]() |
Re: Connect four help
Please don't double post your question.
__________________
<insert disclaimer here> <insert shameless plug for Visual Studio here> |
|
|
|
|
|
#3 | |
|
Hobby Coder
Join Date: May 2006
Posts: 57
Rep Power: 0
![]() |
Re: Connect four help
Quote:
The answer to get rid of the flicker was to just update two squares on the board - the piece's from square, and the square the piece is moving to. End of annoying screen flicker. ![]() You might be able to use InvalidateRect, as you do now, but send it the parameters of the two squares that need updating, in two calls. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mysqli connect via included file | tAK | PHP | 4 | Apr 3rd, 2007 6:40 AM |
| connect to a ssl-webservice with soap | ken q | C++ | 3 | May 5th, 2006 8:39 AM |
| using sockets to connect between ms and *nix | linuxpimp20 | C | 8 | Sep 30th, 2005 8:23 AM |
| Using ODBC to connect to a remote database in a C program | bigi | C++ | 1 | Mar 8th, 2005 3:19 PM |
| Cant connect servlet to MySQL DB | BizzyC | Java | 0 | Mar 8th, 2005 9:01 AM |