File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,9 @@ impl DeviceAdapter {
152
152
153
153
/// Attempt to query the frame rate limit driver setting.
154
154
/// Falls back to a higher scope if the setting could not be found in the current one.
155
+ ///
156
+ /// Returned value is the current or most-recent configured frame limit,
157
+ /// seemingly regardless of whether the feature is enabled.
155
158
pub fn feature_frame_limit ( & self , scope : DriverSettingScope < ' _ > ) -> Result < i32 > {
156
159
let mut result = ctl_result_t:: CTL_RESULT_ERROR_UNKNOWN ;
157
160
let mut scope = Some ( scope) ;
@@ -167,7 +170,7 @@ impl DeviceAdapter {
167
170
ApplicationName : current_app. as_mut_ptr ( ) as * mut _ ,
168
171
ApplicationNameLength : current_app. as_bytes ( ) . len ( ) as i8 ,
169
172
bSet : false ,
170
- ValueType : ctl_property_value_type_t:: CTL_PROPERTY_VALUE_TYPE_ENUM ,
173
+ ValueType : ctl_property_value_type_t:: CTL_PROPERTY_VALUE_TYPE_INT32 ,
171
174
Value : unsafe { std:: mem:: zeroed ( ) } ,
172
175
CustomValueSize : 0 ,
173
176
pCustomValue : std:: ptr:: null_mut ( ) ,
You can’t perform that action at this time.
0 commit comments