mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
FRAMEBUFFER: enable align and textwrap properties of RSS
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7559 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
93e1e8599d
commit
6c4a56b39c
1
CHANGED
1
CHANGED
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- bugfix: 02_FRAMEBUFFER: enable align and textwrap properties of RSS
|
||||||
- changed: 73_km200.pm: New attribute DoNotPoll and German commandref.
|
- changed: 73_km200.pm: New attribute DoNotPoll and German commandref.
|
||||||
- added: 57_CALVIEW.pm (chris1284)
|
- added: 57_CALVIEW.pm (chris1284)
|
||||||
- changed: configDB.pm use fhem function createUniqueId()
|
- changed: configDB.pm use fhem function createUniqueId()
|
||||||
|
@ -116,6 +116,17 @@ sub FRAMEBUFFER_Define($$) {
|
|||||||
}
|
}
|
||||||
$hash->{fhem}{fb_device}= $fb_device;
|
$hash->{fhem}{fb_device}= $fb_device;
|
||||||
|
|
||||||
|
eval "use GD::Text::Align";
|
||||||
|
$hash->{fhem}{useTextAlign} = ($@ ? 0 : 1 );
|
||||||
|
if(!($hash->{fhem}{useTextAlign})) {
|
||||||
|
Log3 $hash, 2, "$name: Cannot use text alignment: $@";
|
||||||
|
}
|
||||||
|
|
||||||
|
eval "use GD::Text::Wrap";
|
||||||
|
$hash->{fhem}{useTextWrap} = ($@ ? 0 : 1 );
|
||||||
|
if(!($hash->{fhem}{useTextWrap})) {
|
||||||
|
Log3 $hash, 2, "$name: Cannot use text wrapping: $@";
|
||||||
|
}
|
||||||
|
|
||||||
readingsSingleUpdate($hash, 'state', 'Initialized',1);
|
readingsSingleUpdate($hash, 'state', 'Initialized',1);
|
||||||
return undef;
|
return undef;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user