2
0
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:
kaihs 2015-01-13 20:31:31 +00:00
parent 3a79d894d9
commit 348594e43b
2 changed files with 12 additions and 0 deletions

View File

@ -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()

View File

@ -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;