Fixed the depth values in the doc file, made some info more clear

This commit is contained in:
WalterPlinge committed 2022-05-01 21:29:09 +01:00
1 parent df233aee94
commit 74d3bcec05
2 files changed
+11 -10

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ save_to_buffer :: proc(img: ^Image, custom_info: Info = {}, allocator := context
// using info so we can just talk about the header
using info
//? validation
// validation
if header.format in (PBM + PGM + Formats{.Pf}) && img.channels != 1 \
|| header.format in (PPM + Formats{.PF}) && img.channels != 3 {
err = .Invalid_Number_Of_Channels