mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: ~500 more byte=>u8
This commit is contained in:
@@ -19,8 +19,8 @@ import math
|
||||
pub struct BitMap {
|
||||
pub mut:
|
||||
tf &TTF_File
|
||||
buf &byte = 0 // pointer to the memory buffer
|
||||
buf_size int // allocated buf size in bytes
|
||||
buf &u8 = 0 // pointer to the memory buffer
|
||||
buf_size int // allocated buf size in bytes
|
||||
width int = 1 // width of the buffer
|
||||
height int = 1 // height of the buffer
|
||||
bp int = 4 // byte per pixel of the buffer
|
||||
|
@@ -490,7 +490,7 @@ fn (mut tf TTF_File) read_compound_glyph(mut in_glyph Glyph) {
|
||||
* TTF_File get functions
|
||||
*
|
||||
******************************************************************************/
|
||||
fn (mut tf TTF_File) get_u8() byte {
|
||||
fn (mut tf TTF_File) get_u8() u8 {
|
||||
x := tf.buf[tf.pos]
|
||||
tf.pos++
|
||||
return u8(x)
|
||||
|
Reference in New Issue
Block a user