![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Software Programming Software programming talk, ask questions about computer software programming or help others |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I came across this code for DirectDraw cLipper in my book LPRGNDATA region_data =(LPRGNDATA)malloc(sizeof(RGNDATAHEADER)+num_rects *sizeof(RECT)); memcpy(region_data->Buffer, clip_list, sizeof(RECT)*num_rects); region_data->rdh.dwSize =sizeof(RGNDATAHEADER); region_data->rdh.iType =RDH_RECTANGLES; region_data->rdh.nCount =num_rects; region_data->rdh.nRgnSize =num_rects*sizeof(RECT); region_data->rdh.rcBound.left =64000; region_data->rdh.rcBound.top =64000; region_data->rdh.rcBound.right =-64000; region_data->rdh.rcBound.bottom =-64000; int i; for (i=0; i<num_rects; i++) { // On regarde si le rectangle courant dépasse de la région if(clip_list[i].leftrdh.rcBound.left) { region_data->rdh.rcBound.left=clip_list[i].left; } if(clip_list[i].right>region_data->rdh.rcBound.right) { region_data->rdh.rcBound.right=clip_list[i].right; } if(clip_list[i].toprdh.rcBound.top) { region_data->rdh.rcBound.top=clip_list[i].top; } if(clip_list[i].bottom>region_data->rdh.rcBound.bottom) { region_data->rdh.rcBound.bottom=clip_list[i].bottom; } } I'm trying to figure out why would someone would put 64000 and -64000 for the region_data->rdh.rcBound RECT and why would we need to check for the region in the code just after. This is is the only thing that I need to know since the rest is pretty clear thanks for your time ! | |||
| Featured Websites | ||||
|
![]() |
| Tags: directdrawclippe, rgndataheader, structure, understand |
| 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 |
| You will quickly understand the potential !!! | CeD | Affiliate Programs | 0 | 06-12-2007 8:21 PM |
| Best way to structure a table? | J Mox | Database | 13 | 05-31-2007 8:45 PM |
| don't understand this feedback | sniper | Ebay Technical Questions | 7 | 05-31-2007 9:59 AM |
| I need help to understand this! | datingservices2 | Building An Internet Business | 1 | 08-16-2006 7:04 PM |
| Sitemap Structure | hirenseo | Search Engine Optimization | 1 | 05-15-2006 10:26 AM |
| Featured Websites | ||||
|