Skip to content

Commit

Permalink
RandR: New data structure, old API. At least it compiles now
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Packard committed Nov 16, 2006
1 parent dc89ecf commit 10b0c7d
Show file tree
Hide file tree
Showing 3 changed files with 570 additions and 186 deletions.
8 changes: 5 additions & 3 deletions randr/mirandr.c
Expand Up @@ -65,11 +65,11 @@ miRRGetInfo (ScreenPtr pScreen, Rotation *rotations)
rrMode.height = pScreen->height;
rrMode.widthInMillimeters = pScreen->mmWidth;
rrMode.heightInMillimeters = pScreen->mmHeight;
pMonitor = RRRegisterMonitor (pScreen, RR_Rotate_0);
rrMode.nameLength = strlen (name);
pMonitor = RRRegisterMonitor (pScreen, NULL, RR_Rotate_0);
pMode = RRRegisterMode (pMonitor,
&rrMode,
name,
strlen (name));
name);
if (!pMode)
return FALSE;
if (!setConfig)
Expand All @@ -90,6 +90,8 @@ Bool
miRRSetMode (ScreenPtr pScreen,
int monitor,
RRModePtr pMode,
int x,
int y,
Rotation rotation)
{
return TRUE;
Expand Down

0 comments on commit 10b0c7d

Please sign in to comment.