mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
gg: clean up draw_image()
This commit is contained in:
parent
7a7572e478
commit
60c642f42d
4 changed files with 21 additions and 30 deletions
|
@ -24,6 +24,10 @@ fn C.stbi_load_from_memory() voidptr
|
|||
fn C.stbi_image_free()
|
||||
fn C.stbi_set_flip_vertically_on_load()
|
||||
|
||||
fn init() {
|
||||
set_flip_vertically_on_load(false)
|
||||
}
|
||||
|
||||
pub fn load(path string) Image {
|
||||
ext := path.all_after_last('.')
|
||||
mut res := Image {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue