author | mickeyl <mickeyl> | 2005-01-01 19:59:53 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-01 19:59:53 (UTC) |
commit | d4b1226ed820ec06ba07361f31dbb35ce559a4cc (patch) (side-by-side diff) | |
tree | d86de5da06a19d5d2a9efd8f1cbc5c90657b0406 /libopie2 | |
parent | 5f310dcd91f574c1b34ca99c157c0b93e6ae1e16 (diff) | |
download | opie-d4b1226ed820ec06ba07361f31dbb35ce559a4cc.zip opie-d4b1226ed820ec06ba07361f31dbb35ce559a4cc.tar.gz opie-d4b1226ed820ec06ba07361f31dbb35ce559a4cc.tar.bz2 |
slightly more correct way to calculate the brightness
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index e75e777..fb23e1d 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp @@ -420,3 +420,3 @@ bool Zaurus::setDisplayBrightness( int bright ) { - int val = ( numberOfSteps * 255 ) / 255; + int val = ( bright * numberOfSteps ) / 255; res = ( ::ioctl ( fd, SHARP_FL_IOCTL_STEP_CONTRAST, val ) == 0 ); |