mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
FRAMEBUFFER: enable align and textwrap properties of RSS
git-svn-id: https://svn.fhem.de/fhem/trunk@7559 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3a79d894d9
commit
348594e43b
@ -1,5 +1,6 @@
|
||||
# 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.
|
||||
- bugfix: 02_FRAMEBUFFER: enable align and textwrap properties of RSS
|
||||
- changed: 73_km200.pm: New attribute DoNotPoll and German commandref.
|
||||
- added: 57_CALVIEW.pm (chris1284)
|
||||
- changed: configDB.pm use fhem function createUniqueId()
|
||||
|
@ -116,6 +116,17 @@ sub FRAMEBUFFER_Define($$) {
|
||||
}
|
||||
$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);
|
||||
return undef;
|
||||
|
Loading…
x
Reference in New Issue
Block a user