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

@@ -37,7 +37,7 @@ pub:
frame_cb fn ()
cleanup_cb fn ()
event_cb fn (&Event) //&sapp_event)
fail_cb fn (&byte)
fail_cb fn (&u8)
user_data voidptr // these are the user-provided callbacks with user data
init_userdata_cb fn (voidptr)

View File

@@ -45,7 +45,7 @@ pub fn screenshot_png(path string) ? {
}
// write_rgba_to_ppm writes `pixels` data in RGBA format to PPM3 format.
fn write_rgba_to_ppm(path string, w int, h int, components int, pixels &byte) ? {
fn write_rgba_to_ppm(path string, w int, h int, components int, pixels &u8) ? {
mut f_out := os.create(path) ?
defer {
f_out.close()

View File

@@ -6,7 +6,7 @@ pub struct Screenshot {
height int
size int
mut:
pixels &byte
pixels &u8
}
[manualfree]