Brucey 3 anni fa
parent
commit
e34ab67697

+ 1 - 2
bmp.mod/examples/example_01.bmx

@@ -14,8 +14,7 @@ Local img1:TImage = Loader("blackbuck.bmp", w, h)
 Local img2:TImage = Loader("bmp_24.bmp", w, h)
 
 If Not img1 Or Not img2 Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 Local image:Int

+ 1 - 2
gif.mod/examples/example_01.bmx

@@ -14,8 +14,7 @@ Local img1:TImage = Loader("bali.gif", w, h)
 Local img2:TImage = Loader("fractal_tree.gif", w, h)
 
 If Not img1 Or Not img2 Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 Local image:Int

+ 1 - 2
ilbm.mod/examples/example_01.bmx

@@ -14,8 +14,7 @@ Local img1:TImage = Loader("Kickstart11.iff", w, h)
 Local img2:TImage = Loader("PLANE02.RGB", w, h)
 
 If Not img1 Or Not img2 Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 Local image:Int

+ 1 - 2
jpg.mod/examples/example_01.bmx

@@ -14,8 +14,7 @@ Local img1:TImage = Loader("sample-birch-400x300.jpeg", w, h)
 Local img2:TImage = Loader("sample-clouds-400x300.jpeg", w, h)
 
 If Not img1 Or Not img2 Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 Local image:Int

+ 1 - 2
pcx.mod/examples/example_01.bmx

@@ -14,8 +14,7 @@ Local img1:TImage = Loader("marbles.pcx", w, h)
 Local img2:TImage = Loader("gmarbles.pcx", w, h)
 
 If Not img1 Or Not img2 Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 Local image:Int

+ 1 - 2
png.mod/examples/example_01.bmx

@@ -14,8 +14,7 @@ Local img1:TImage = Loader("sample-hut-400x300.png", w, h)
 Local img2:TImage = Loader("PNG_transparency_demonstration_1.png", w, h)
 
 If Not img1 Or Not img2 Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 Local image:Int

+ 1 - 2
pnm.mod/examples/example_01.bmx

@@ -14,8 +14,7 @@ Local img1:TImage = Loader("rays2.pnm", w, h)
 Local img2:TImage = Loader("snail2.pnm", w, h)
 
 If Not img1 Or Not img2 Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 Local image:Int

+ 1 - 2
qoi.mod/examples/example_01.bmx

@@ -13,8 +13,7 @@ Local pix:TPixmap = LoadPixmap("kodim23.qoi")
 If pix Then
 	Print pix.width + ", " + pix.height
 Else
-	Print "Unable to load file"
-	End
+	Throw "Unable to load file"
 End If
 
 Graphics 1024, 768, 0

+ 1 - 2
raw.mod/examples/example_01.bmx

@@ -13,8 +13,7 @@ Local pix:TPixmap = LoadPixmap("gh2.rw2")
 If pix Then
 	Print pix.width + ", " + pix.height
 Else
-	Print "Unable to load file"
-	End
+	Throw "Unable to load file"
 End If
 
 Graphics 1024, 768, 0

+ 1 - 2
svg.mod/examples/example_01.bmx

@@ -14,8 +14,7 @@ Local img1:TImage = Loader("23.svg", w, h)
 Local img2:TImage = Loader("drawing.svg", w, h)
 
 If Not img1 Or Not img2 Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 Local image:Int

+ 1 - 2
tga.mod/examples/example_01.bmx

@@ -13,8 +13,7 @@ AutoMidHandle(True)
 Local img:TImage = LoadImage("earth.tga")
 
 If Not img Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 While Not KeyDown(Key_ESCAPE)

+ 1 - 2
webp.mod/examples/example_01.bmx

@@ -14,8 +14,7 @@ Local img1:TImage = Loader("3_webp_ll.webp", w, h)
 Local img2:TImage = Loader("tree.webp", w, h)
 
 If Not img1 Or Not img2 Then
-	Print "Failed to load image"
-	End
+	Throw "Failed to load image"
 End If
 
 Local image:Int