[armemu] read the display size from the emulator
diff --git a/platform/armemu/display.c b/platform/armemu/display.c
index 13484ec..5b33965 100644
--- a/platform/armemu/display.c
+++ b/platform/armemu/display.c
@@ -43,8 +43,8 @@
 		return;
 
 	display_fb = (void *)DISPLAY_FRAMEBUFFER;
-	display_w = 640;
-	display_h = 480;
+	display_w = *REG32(DISPLAY_WIDTH);
+	display_h = *REG32(DISPLAY_HEIGHT);
 
 	gfx_draw_pattern();
 }
diff --git a/platform/armemu/include/platform/armemu/memmap.h b/platform/armemu/include/platform/armemu/memmap.h
index 806e195..b13050f 100644
--- a/platform/armemu/include/platform/armemu/memmap.h
+++ b/platform/armemu/include/platform/armemu/memmap.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005-2006 Travis Geiselbrecht
+ * Copyright (c) 2005-2010 Travis Geiselbrecht
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files
@@ -59,7 +59,10 @@
 #define DISPLAY_FRAMEBUFFER DISPLAY_BASE
 #define DISPLAY_REGS_BASE (DISPLAY_BASE + DISPLAY_SIZE)
 #define DISPLAY_REGS_SIZE MEMBANK_SIZE
-	/* no display regs for now */
+
+#define DISPLAY_WIDTH     (DISPLAY_REGS_BASE + 0) // pixels width/height read/only
+#define DISPLAY_HEIGHT    (DISPLAY_REGS_BASE + 4)
+#define DISPLAY_BPP       (DISPLAY_REGS_BASE + 8) // bits per pixel (16/32)
 
 /* console (keyboard controller */
 #define CONSOLE_REGS_BASE (DISPLAY_REGS_BASE + DISPLAY_REGS_SIZE)