summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5a31ef0)
static void size_allocate_event(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data)
{
// printf("%dx%d\n", allocation->width, allocation->height);
static void size_allocate_event(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data)
{
// printf("%dx%d\n", allocation->width, allocation->height);
- scr_w = allocation->width - 2;
- scr_h = allocation->height - 2;
- scr_changed = 1;
+ if (scr_w != allocation->width - 2 || scr_h != allocation->height - 2) {
+ scr_w = allocation->width - 2;
+ scr_h = allocation->height - 2;
+ scr_changed = 1;
+ }
}
static void *gtk_threadf(void *targ)
}
static void *gtk_threadf(void *targ)
void *old = g_screen_ptr;
g_screen_width = scr_w;
g_screen_height = scr_h;
void *old = g_screen_ptr;
g_screen_width = scr_w;
g_screen_height = scr_h;
- g_screen_ptr = malloc(g_screen_width * g_screen_height * 2);
+ g_screen_ptr = calloc(g_screen_width * g_screen_height * 2, 1);
free(old);
scr_changed = 0;
}
free(old);
scr_changed = 0;
}
#ifndef PORT_CONFIG_H
#define PORT_CONFIG_H
#ifndef PORT_CONFIG_H
#define PORT_CONFIG_H
+#include "../gp2x/version.h" /* FIXME */
+
#define NO_SYNC
#define CASE_SENSITIVE_FS 1 // CS filesystem
#define NO_SYNC
#define CASE_SENSITIVE_FS 1 // CS filesystem