Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarthak Bhardwaj
FreeType
Commits
65756e01
Commit
65756e01
authored
Oct 06, 2005
by
David Turner
Browse files
* src/rgbfilt/ftrgb.c: fixed computation bug for vertical modes
parent
66e5d7a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
65756e01
...
...
@@ -5,6 +5,8 @@
* src/rgbfilt/ftrgbgen.h, src/rgbfilt/ftrgbgn2.h: fix some computation
issues on 16-bit platforms.
* src/rgbfilt/ftrgb.c: fixed computation bug for vertical modes
2005-09-27 David Turner <david@freetype.org>
* include/freetype/config/ftheader.h, include/freetype/ftrgb.h,
...
...
src/rgbfilt/ftrgb.c
View file @
65756e01
...
...
@@ -25,10 +25,10 @@ typedef struct FT_RgbFilterinRec_
/* these values come from libXft */
static
const
FT_RgbFilterRec
ft_rgbfilter_default
=
{
{
65538
*
9
/
13
,
65538
*
3
/
13
,
65538
*
1
/
13
,
65538
*
1
/
6
,
65538
*
4
/
6
,
65538
*
1
/
6
,
{
65538
*
9
/
13
,
65538
*
3
/
13
,
65538
*
1
/
13
,
65538
*
1
/
6
,
65538
*
4
/
6
,
65538
*
1
/
6
,
65538
*
1
/
13
,
65538
*
3
/
13
,
65538
*
9
/
13
},
NULL
NULL
};
static
void
...
...
@@ -60,9 +60,9 @@ ft_rgbfilter_apply_argb_vrgb( FT_RgbFiltering oper )
{
#define HMUL 1
#define VMUL 3
#define OFF_R
0
#define OFF_G
1
#define OFF_B
2
#define OFF_R
(0*in_pitch)
#define OFF_G
(1*in_pitch)
#define OFF_B
(2*in_pitch)
#include
"ftrgbgen.h"
}
...
...
@@ -72,9 +72,9 @@ ft_rgbfilter_apply_argb_vbgr( FT_RgbFiltering oper )
{
#define HMUL 1
#define VMUL 3
#define OFF_R
2
#define OFF_G
1
#define OFF_B
0
#define OFF_R
(2*in_pitch)
#define OFF_G
(1*in_pitch)
#define OFF_B
(0*in_pitch)
#include
"ftrgbgen.h"
}
...
...
@@ -109,9 +109,9 @@ ft_rgbfilter_apply_inplace_vrgb( FT_RgbFiltering oper )
{
#define HMUL 1
#define VMUL 3
#define OFF_R
0
#define OFF_G
1
#define OFF_B
2
#define OFF_R
(0*in_pitch)
#define OFF_G
(1*in_pitch)
#define OFF_B
(2*in_pitch)
#include
"ftrgbgn2.h"
}
...
...
@@ -121,9 +121,9 @@ ft_rgbfilter_apply_inplace_vbgr( FT_RgbFiltering oper )
{
#define HMUL 1
#define VMUL 3
#define OFF_R
2
#define OFF_G
1
#define OFF_B
0
#define OFF_R
(2*in_pitch)
#define OFF_G
(1*in_pitch)
#define OFF_B
(0*in_pitch)
#include
"ftrgbgn2.h"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment