:intel_extreme: only offer backlight control in screenpres on laptops.
This commit is contained in:
@@ -47,10 +47,16 @@ get_accelerant_hook(uint32 feature, void* data)
|
|||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
case B_GET_EDID_INFO:
|
case B_GET_EDID_INFO:
|
||||||
return (void*)intel_get_edid_info;
|
return (void*)intel_get_edid_info;
|
||||||
|
|
||||||
|
/* laptop panel backlight */
|
||||||
case B_SET_BRIGHTNESS:
|
case B_SET_BRIGHTNESS:
|
||||||
return (void*)intel_set_brightness;
|
if (gInfo->shared_info->device_type.IsMobile())
|
||||||
|
return (void*)intel_set_brightness;
|
||||||
case B_GET_BRIGHTNESS:
|
case B_GET_BRIGHTNESS:
|
||||||
return (void*)intel_get_brightness;
|
if (gInfo->shared_info->device_type.IsMobile())
|
||||||
|
return (void*)intel_get_brightness;
|
||||||
|
|
||||||
|
return NULL;
|
||||||
#endif
|
#endif
|
||||||
case B_GET_FRAME_BUFFER_CONFIG:
|
case B_GET_FRAME_BUFFER_CONFIG:
|
||||||
return (void*)intel_get_frame_buffer_config;
|
return (void*)intel_get_frame_buffer_config;
|
||||||
|
|||||||
Reference in New Issue
Block a user