Browse code

add many return statements ... fixes bbitmap issues. update yab.rdef

bbjimmy authored onSat/Jul/2020 14:0:th
Showing2 changed files
... ...
@@ -26,10 +26,10 @@ resource app_signature "application/x-vnd.yab-app";
26 26
 resource app_version {
27 27
 	major  = 1,
28 28
 	middle = 7,
29
-	minor  = 5,
29
+	minor  = 8,
30 30
 
31 31
 	variety = B_APPV_FINAL,
32
-	internal = 3,
32
+	internal = 4,
33 33
 
34 34
 	short_info = "Yab BASIC programming language",
35 35
 	long_info = "Yab allows fast prototyping with simple and clean code. yab contains a large number of BeAPI specific commands for GUI creation and much, much more."
... ...
@@ -4526,6 +4526,7 @@ const char* YabInterface::DrawGet(const char* option)
4526 4526
 int YabInterface::DrawGet(BPoint coord, const char* option, const char* view)
4527 4527
 {
4528 4528
 	BString t(option);
4529
+	return 0;
4529 4530
 	
4530 4531
 }
4531 4532
 
... ...
@@ -10859,7 +10860,7 @@ void yi_Bitmap(double w, double h, const char* id,YabInterface* yab)
10859 10860
 
10860 10861
 int yi_BitmapColor(double x, double y, const char* id, const char* option, YabInterface *yab)
10861 10862
 {
10862
-	yab->BitmapColor(x,y, id, option);
10863
+	return yab->BitmapColor(x,y, id, option);
10863 10864
 }
10864 10865
 
10865 10866
 void yi_BitmapDraw(double x, double y, const char* bitmap, const char* mode, const char* view,YabInterface* yab)
... ...
@@ -10884,12 +10885,12 @@ void yi_BitmapGet2(double w, const char* id, const char* path, YabInterface* yab
10884 10885
 
10885 10886
 int yi_BitmapGetNum(const char* id, const char* option, YabInterface* yab)
10886 10887
 {
10887
-	yab->BitmapGet(id, option);
10888
+	return yab->BitmapGet(id, option);
10888 10889
 }
10889 10890
 
10890 10891
 int yi_BitmapLoad(const char* filename, const char* bitmap, YabInterface* yab)
10891 10892
 {
10892
-	yab->BitmapLoad(filename, bitmap);
10893
+	return yab->BitmapLoad(filename, bitmap);
10893 10894
 }
10894 10895
 
10895 10896
 void yi_BitmapGetIcon(const char* id, const char* option, const char* path, YabInterface* yab)