Add drawing fcuntions for lines and strings incl. three fonts
This commit is contained in:
parent
ae55d0fbca
commit
1141284143
6 changed files with 586 additions and 5 deletions
17
metawatch.c
17
metawatch.c
|
@ -1,7 +1,20 @@
|
|||
/*
|
||||
* (c) 2011 Siegen, Germany by Nils Faerber <nils.faerber@kernelconcepts.de>
|
||||
*
|
||||
* license LGPL
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -352,7 +365,7 @@ void mw_send_bitmap(int mw_fd, unsigned char mode, int width, int height, int of
|
|||
unsigned int y, rowlength;
|
||||
unsigned char mw_buf[24];
|
||||
|
||||
rowlength = ((width / 8) + 1);
|
||||
rowlength = (((width-1) / 8) + 1);
|
||||
if ((height + offset) > 96)
|
||||
height = 96 - offset;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue