mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
fix linux 'port'
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@672 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
5a31ef0777
commit
44bfd52ff5
2 changed files with 8 additions and 4 deletions
|
@ -114,10 +114,12 @@ static gint key_release_event (GtkWidget *widget, GdkEventKey *event)
|
||||||
static void size_allocate_event(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data)
|
static void size_allocate_event(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data)
|
||||||
{
|
{
|
||||||
// printf("%dx%d\n", allocation->width, allocation->height);
|
// printf("%dx%d\n", allocation->width, allocation->height);
|
||||||
|
if (scr_w != allocation->width - 2 || scr_h != allocation->height - 2) {
|
||||||
scr_w = allocation->width - 2;
|
scr_w = allocation->width - 2;
|
||||||
scr_h = allocation->height - 2;
|
scr_h = allocation->height - 2;
|
||||||
scr_changed = 1;
|
scr_changed = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void *gtk_threadf(void *targ)
|
static void *gtk_threadf(void *targ)
|
||||||
{
|
{
|
||||||
|
@ -198,7 +200,7 @@ static void realloc_screen(void)
|
||||||
void *old = g_screen_ptr;
|
void *old = g_screen_ptr;
|
||||||
g_screen_width = scr_w;
|
g_screen_width = scr_w;
|
||||||
g_screen_height = scr_h;
|
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);
|
free(old);
|
||||||
scr_changed = 0;
|
scr_changed = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
#ifndef PORT_CONFIG_H
|
#ifndef PORT_CONFIG_H
|
||||||
#define PORT_CONFIG_H
|
#define PORT_CONFIG_H
|
||||||
|
|
||||||
|
#include "../gp2x/version.h" /* FIXME */
|
||||||
|
|
||||||
#define NO_SYNC
|
#define NO_SYNC
|
||||||
|
|
||||||
#define CASE_SENSITIVE_FS 1 // CS filesystem
|
#define CASE_SENSITIVE_FS 1 // CS filesystem
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue