Less confusing, and compatible with libXrandr.
#endif
}
-intptr_t vncRandRGetOutputId(int scrIdx, int outputIdx)
+unsigned int vncRandRGetOutputId(int scrIdx, int outputIdx)
{
#ifdef RANDR
rrScrPrivPtr rp = rrGetScrPriv(screenInfo.screens[scrIdx]);
- return (intptr_t)rp->outputs[outputIdx];
+ return rp->outputs[outputIdx]->id;
#else
return 0;
#endif
int vncRandRReconfigureOutput(int scrIdx, int outputIdx, int x, int y,
int width, int height);
-intptr_t vncRandRGetOutputId(int scrIdx, int outputIdx);
+unsigned int vncRandRGetOutputId(int scrIdx, int outputIdx);
void vncRandRGetOutputDimensions(int scrIdx, int outputIdx,
int *x, int *y, int *width, int *height);
OutputIdMap newIdMap;
for (int i = 0;i < vncRandRGetOutputCount(screenIndex);i++) {
- intptr_t outputId;
+ unsigned int outputId;
int x, y, width, height;
/* Disabled? */
/* Next, reconfigure all known outputs, and turn off the other ones */
for (int i = 0;i < vncRandRGetOutputCount(screenIndex);i++) {
- intptr_t output;
+ unsigned int output;
ScreenSet::const_iterator iter;
ScreenSet::const_iterator iter;
for (iter = layout.begin();iter != layout.end();++iter) {
OutputIdMap::const_iterator oi;
- intptr_t output;
+ unsigned int output;
int i;
/* Does this screen have an output already? */
rfb::Timer queryConnectTimer;
#ifdef RANDR
- typedef std::map<intptr_t, rdr::U32> OutputIdMap;
+ typedef std::map<unsigned int, rdr::U32> OutputIdMap;
OutputIdMap outputIdMap;
#endif