static emulator_config_info _emul_info;
+static emulator_config_state _emul_state;
+/* lcd screen size */
void set_emul_lcd_size(int width, int height)
{
- _emul_info.resolution_w = width;
- _emul_info.resolution_h = height;
+ _emul_info.lcd_size_w = width;
+ _emul_info.lcd_size_h = height;
- INFO("emulator graphic resolution %dx%d\n", _emul_info.resolution_w, _emul_info.resolution_h);
+ INFO("emulator graphic resolution %dx%d\n", _emul_info.lcd_size_w, _emul_info.lcd_size_h);
}
int get_emul_lcd_width(void)
{
- return _emul_info.resolution_w;
+ return _emul_info.lcd_size_w;
}
int get_emul_lcd_height(void)
{
- return _emul_info.resolution_h;
+ return _emul_info.lcd_size_h;
+}
+
+/* emulator window scale */
+void set_emul_win_scale(int scale)
+{
+ _emul_state.scale = scale;
+}
+
+int get_emul_win_scale(void)
+{
+ return _emul_state.scale;
+}
+
+/* emulator rotation */
+void set_emul_rotation(int rotation)
+{
+ _emul_state.rotation = rotation;
+}
+
+int get_emul_rotation(void)
+{
+ return _emul_state.rotation;
}
typedef struct emulator_config_info {
- int resolution_w;
- int resolution_h;
+ int lcd_size_w;
+ int lcd_size_h;
+ //TODO:
} emulator_config_info;
-struct emulator_config_state {
+typedef struct emulator_config_state {
+ int scale;
+ int rotation;
//TODO:
-};
+} emulator_config_state;
/* setter */
void set_emul_lcd_size(int width, int height);
+void set_emul_win_scale(int scale);
+void set_emul_rotation(int scale);
/* getter */
int get_emul_lcd_width(void);
int get_emul_lcd_height(void);
+int get_emul_win_scale(void);
+int get_emul_rotation(void);
#endif /* __EMUL_STATE_H__ */