|
|
@ -32,6 +32,7 @@
|
|
|
|
#include <directfb.h>
|
|
|
|
#include <directfb.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
#include "uimain.h"
|
|
|
|
#include "uimain.h"
|
|
|
|
|
|
|
|
#include "bsops.h"
|
|
|
|
|
|
|
|
|
|
|
|
extern char g_username[];
|
|
|
|
extern char g_username[];
|
|
|
|
extern char g_hostname[];
|
|
|
|
extern char g_hostname[];
|
|
|
@ -89,6 +90,8 @@ static int g_trans_colour = 0;
|
|
|
|
//static IDirectFBDataBuffer * g_buffer = 0;
|
|
|
|
//static IDirectFBDataBuffer * g_buffer = 0;
|
|
|
|
//static IDirectFBImageProvider * g_provider = 0;
|
|
|
|
//static IDirectFBImageProvider * g_provider = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void (* master_callback)(int msg, int param1, int param2) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
|
|
void
|
|
|
|
void
|
|
|
|
mi_error(char * msg)
|
|
|
|
mi_error(char * msg)
|
|
|
@ -114,9 +117,12 @@ mi_read_keyboard_state(void)
|
|
|
|
/* returns non zero if ok */
|
|
|
|
/* returns non zero if ok */
|
|
|
|
int
|
|
|
|
int
|
|
|
|
mi_create_window(void)
|
|
|
|
mi_create_window(void)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!g_no_draw)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
g_primary->SetColor(g_primary, 0, 0, 0, 0xff);
|
|
|
|
g_primary->SetColor(g_primary, 0, 0, 0, 0xff);
|
|
|
|
g_primary->FillRectangle(g_primary, 0, 0, g_width, g_height);
|
|
|
|
g_primary->FillRectangle(g_primary, 0, 0, g_width, g_height);
|
|
|
|
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -627,6 +633,16 @@ mi_set_null_cursor(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
|
|
|
|
mi_logon(void)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (master_callback != 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
master_callback(1, 0, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
|
|
static void
|
|
|
|
static void
|
|
|
|
out_params(void)
|
|
|
|
out_params(void)
|
|
|
@ -868,3 +884,11 @@ librdesktop_quit(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
int
|
|
|
|
|
|
|
|
librdesktop_set_callback(void (* callback)(int, int, int))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
master_callback = callback;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|