Re: [AD] iOS patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Mon, 31 Oct 2011 21:58:29 -0600, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> I'm not sure how to get a diff with just my changes in it, so this is a replacement for the patch Peter posted. All of the addons compile and I tested ex_bitmap_flip which works. Few changes were needed, mainly to the native dialogs addon.
> 
> Trent
> 

I didn't get your native dialog changes, probably because they
weren't svn added.  Can you send me your copy of iphone_dialog.m?

The changes I extracted out of your patch are below.

Peter

diff --git a/examples/ex_bitmap_flip.c b/examples/ex_bitmap_flip.c
index ae4a7fd..332bb60 100644
--- a/examples/ex_bitmap_flip.c
+++ b/examples/ex_bitmap_flip.c
@@ -79,7 +79,7 @@ int main(void)
 
    al_init_font_addon();
 
-   display = al_create_display(640, 480);
+   display = al_create_display(768, 1024);
    if (!display) {
       abort_example("Error creating display.\n");
       return 1;
diff --git a/src/iphone/allegroAppDelegate.m b/src/iphone/allegroAppDelegate.m
index 7438c4e..ec5bf01 100644
--- a/src/iphone/allegroAppDelegate.m
+++ b/src/iphone/allegroAppDelegate.m
@@ -33,6 +33,11 @@ float _al_iphone_get_screen_scale(void)
    return 1.0f;
 }
 
+void _al_iphone_get_view(void)
+{
+   return [global_delegate view];
+}
+
 /* Function: al_iphone_override_screen_scale
  */
 void al_iphone_override_screen_scale(float scale)





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/