Skip to content

Commit 4b5e1a8

Browse files
committed
Display (Windows): rename VRR to DRR
1 parent a92e4b2 commit 4b5e1a8

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/detection/displayserver/displayserver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ FFDisplayResult* ffdsAppendDisplay(
4545
display->manufactureYear = 0;
4646
display->manufactureWeek = 0;
4747
display->serial = 0;
48-
display->vrrStatus = FF_DISPLAY_VRR_STATUS_UNKNOWN;
48+
display->drrStatus = FF_DISPLAY_DRR_STATUS_UNKNOWN;
4949

5050
return display;
5151
}

src/detection/displayserver/displayserver.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ typedef enum __attribute__((__packed__)) FFDisplayHdrStatus
6262

6363
typedef enum __attribute__((__packed__)) FFDisplayVrrStatus
6464
{
65-
FF_DISPLAY_VRR_STATUS_UNKNOWN,
66-
FF_DISPLAY_VRR_STATUS_DISABLED,
67-
FF_DISPLAY_VRR_STATUS_ENABLED,
65+
FF_DISPLAY_DRR_STATUS_UNKNOWN,
66+
FF_DISPLAY_DRR_STATUS_DISABLED,
67+
FF_DISPLAY_DRR_STATUS_ENABLED,
6868
} FFDisplayVrrStatus;
6969

7070
typedef struct FFDisplayResult
@@ -90,7 +90,7 @@ typedef struct FFDisplayResult
9090
uint16_t manufactureYear;
9191
uint16_t manufactureWeek;
9292
uint32_t serial;
93-
FFDisplayVrrStatus vrrStatus;
93+
FFDisplayVrrStatus drrStatus;
9494
} FFDisplayResult;
9595

9696
typedef struct FFDisplayServerResult

src/detection/displayserver/displayserver_windows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ static void detectDisplays(FFDisplayServerResult* ds)
229229
}
230230
if (edidLength > 0)
231231
ffEdidGetSerialAndManufactureDate(edidData, &display->serial, &display->manufactureYear, &display->manufactureWeek);
232-
display->vrrStatus = path->flags & DISPLAYCONFIG_PATH_BOOST_REFRESH_RATE ? FF_DISPLAY_VRR_STATUS_ENABLED : FF_DISPLAY_VRR_STATUS_DISABLED;
232+
display->drrStatus = path->flags & DISPLAYCONFIG_PATH_BOOST_REFRESH_RATE ? FF_DISPLAY_DRR_STATUS_ENABLED : FF_DISPLAY_DRR_STATUS_DISABLED;
233233
}
234234
}
235235
}

src/modules/display/display.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,18 +348,18 @@ bool ffGenerateDisplayJsonResult(FF_MAYBE_UNUSED FFDisplayOptions* options, yyjs
348348
yyjson_mut_obj_add_uint(doc, output, "height", item->height);
349349
yyjson_mut_obj_add_real(doc, output, "refreshRate", item->refreshRate);
350350

351-
if (item->vrrStatus == FF_DISPLAY_VRR_STATUS_UNKNOWN)
352-
yyjson_mut_obj_add_null(doc, output, "vrrStatus");
353-
else switch (item->vrrStatus)
351+
if (item->drrStatus == FF_DISPLAY_DRR_STATUS_UNKNOWN)
352+
yyjson_mut_obj_add_null(doc, output, "drrStatus");
353+
else switch (item->drrStatus)
354354
{
355-
case FF_DISPLAY_VRR_STATUS_DISABLED:
356-
yyjson_mut_obj_add_str(doc, output, "vrrStatus", "Disabled");
355+
case FF_DISPLAY_DRR_STATUS_DISABLED:
356+
yyjson_mut_obj_add_str(doc, output, "drrStatus", "Disabled");
357357
break;
358-
case FF_DISPLAY_VRR_STATUS_ENABLED:
359-
yyjson_mut_obj_add_str(doc, output, "vrrStatus", "Enabled");
358+
case FF_DISPLAY_DRR_STATUS_ENABLED:
359+
yyjson_mut_obj_add_str(doc, output, "drrStatus", "Enabled");
360360
break;
361361
default:
362-
yyjson_mut_obj_add_str(doc, output, "vrrStatus", "Unknown");
362+
yyjson_mut_obj_add_str(doc, output, "drrStatus", "Unknown");
363363
break;
364364
}
365365

0 commit comments

Comments
 (0)