mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-26 15:18:23 -05:00
text-freetype2: Fix warning about implicit integer downcast
Use Freetype2-specific types which match the types used internally and returned by Freetype2 functions anyway.
This commit is contained in:
@@ -226,7 +226,7 @@ static void create_bitmap_sizes(struct font_path_info *info, FT_Face face)
|
||||
da_reserve(sizes, face->num_fixed_sizes);
|
||||
|
||||
for (int i = 0; i < face->num_fixed_sizes; i++) {
|
||||
int val = face->available_sizes[i].size >> 6;
|
||||
FT_Pos val = face->available_sizes[i].size >> 6;
|
||||
da_push_back(sizes, &val);
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
struct glyph_info {
|
||||
float u, v, u2, v2;
|
||||
int32_t w, h, xoff, yoff;
|
||||
int32_t xadv;
|
||||
FT_Pos xadv;
|
||||
};
|
||||
|
||||
struct ft2_source {
|
||||
|
||||
Reference in New Issue
Block a user