|
01/08/2009 10:25 AM
post19648
|
I'm trying to change a region cursor and am getting an error from PhRegionChange. Here is the code snippet.
{
int rc;
PhRegion_t info;
PhRect_t rect;
info.rid = rId;
info.cursor_color = PgRGB(255,255,255);
info.cursor_type = cursorId;
//fprintf(stderr, "changing cursor to %d\n", cursorId);
rc = PhRegionChange(Ph_REGION_CURSOR, 0, &info, NULL, NULL);
}
Two questions:
1) Is this the proper way to change a region's cursor? If not what is?
2) On any of the photon functions that can return a -1 error indicator, is there some what (errno) to identify what
kind of error?
Thx,
Bill
|
|
|
|
|