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

This commit is contained in:
WalterPlinge
2022-05-01 21:29:09 +01:00
parent df233aee94
commit 74d3bcec05
2 changed files with 11 additions and 10 deletions
+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