project_files/HedgewarsMobile/Classes/CommodityFunctions.h
changeset 5662 99083392cd4f
parent 5483 fc755bb8096d
child 5976 306cedbeb213
--- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.h	Mon Aug 22 23:56:25 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.h	Tue Aug 23 03:46:17 2011 +0200
@@ -63,6 +63,7 @@
 #define IS_NOT_VERY_POWERFUL(x) ([x hasPrefix:@"iPad1"] || [x hasPrefix:@"iPhone2"] || [x hasPrefix:@"iPod3"] || [x hasPrefix:@"iPod4"])
 #define IS_VERY_POWERFUL(x)     (IS_NOT_POWERFUL(x) == NO && IS_NOT_VERY_POWERFUL(x) == NO)
 
+#define UIVIEW_HW_SDLVIEW       [[[[UIApplication sharedApplication] keyWindow] subviews] objectAtIndex:0]
 
 void print_free_memory (void);
 void playSound (NSString *snd);