Skip to content

Commit 07f7f4d

Browse files
committed
Fix LCD filters
1 parent b64e656 commit 07f7f4d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/freetypy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ either expressed or implied, of the FreeBSD Project.
6161

6262
#include "doc/lcd.h"
6363

64-
#include "freetype/ftlcdfil.h"
64+
#include FT_LCD_FILTER_H
6565

6666
static FT_Library ft_library;
6767

@@ -94,7 +94,7 @@ py_set_lcd_filter(PyObject *self, PyObject *args, PyObject *kwargs)
9494
PyObject *
9595
py_set_lcd_filter_weights(PyObject *self, PyObject *args, PyObject *kwargs)
9696
{
97-
char filters[5];
97+
unsigned char filters[5];
9898

9999
static char *kwlist[] = {"filter", NULL};
100100

src/lcd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ either expressed or implied, of the FreeBSD Project.
3030
#include "lcd.h"
3131
#include "doc/lcd.h"
3232

33-
#include "freetype/ftlcdfil.h"
33+
#include FT_LCD_FILTER_H
3434

3535
ftpy_ConstantType Py_FT_LCD_FILTER_ConstantType;
3636
static PyTypeObject Py_FT_LCD_FILTER_Type;
@@ -46,7 +46,7 @@ static constant_def FT_LCD_FILTER_constants[] = {
4646

4747
int setup_Lcd(PyObject *m)
4848
{
49-
define_constant_namespace(
49+
return define_constant_namespace(
5050
m, &Py_FT_LCD_FILTER_Type, &Py_FT_LCD_FILTER_ConstantType,
5151
"freetypy.LCD_FILTER",
5252
doc_LCD_FILTER, FT_LCD_FILTER_constants);

0 commit comments

Comments
 (0)