1
0
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:
Alexander Medvednikov
2022-04-15 18:25:45 +03:00
parent ae6a25f44e
commit fbb9e65c0f
148 changed files with 544 additions and 494 deletions

View File

@@ -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

View File

@@ -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)