GdkFunction func = GDK_GC_FBDATA(gc)->values.function;
cmask = GDK_GC_FBDATA(gc)->values.clip_mask;
+ clipxoff = clipyoff = tsxoff = tsyoff = 0;
+ mask_rowstride = 0;
+ solid_stipple = FALSE;
+ clipmem = NULL;
if(cmask)
{
clipmem = GDK_DRAWABLE_IMPL_FBDATA(cmask)->mem;
#include <math.h>
#include <stdlib.h>
+#include <string.h>
#include "gdkfont.h"
#include "gdkprivate-fb.h"
#include "gdkpango.h"
+#include <string.h>
+#include <stdlib.h>
+
#include "gdkprivate-fb.h"
#include "gdkgc.h"
#include "gdkfb.h"
#include <stdlib.h>
#include <sys/types.h>
+#include <string.h>
#include "gdk.h"
#include "gdkimage.h"
#include <sys/kd.h>
#include <ctype.h>
#include <stdlib.h>
+#include <string.h>
/*
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
int n, left, dx=0, dy=0;
PS2Mouse *mouse = data;
gboolean new_button1, new_button2, new_button3;
- time_t the_time = g_latest_time.tv_sec;
+ time_t the_time;
+ GTimeVal curtime;
GdkWindow *mousewin;
gboolean got_motion = FALSE;
+ g_get_current_time(&curtime);
+ the_time = curtime.tv_usec;
+
while(1) /* Go through as many mouse events as we can */
{
for(left = sizeof(buf); left > 0; )
int i, n;
Keyboard *k = data;
time_t now;
+ GTimeVal curtime;
n = read(k->fd, buf, sizeof(buf));
if(n <= 0)
g_error("Nothing from keyboard!");
/* Now turn this into a keyboard event */
- now = g_latest_time.tv_sec;
+ g_get_current_time(&curtime);
+ now = curtime.tv_sec;
for(i = 0; i < n; i++)
{
if(evmask & type_masks[type])
{
GdkEvent *event = gdk_event_new();
+#if 0
guint32 the_time = g_latest_time.tv_sec * 1000 + g_latest_time.tv_usec / 1000;
+#else
+ guint32 the_time;
+ GTimeVal gcurtime;
+
+ g_get_current_time(&gcurtime);
+ the_time = gcurtime.tv_sec * 1000 + gcurtime.tv_usec / 1000;
+#endif
event->any.type = type;
event->any.window = gdk_window_ref(window);
{
PangoFBFontMap *fbfm = (PangoFBFontMap *)fontmap;
PangoFBFont *retval;
- PangoFBFontListing *fl;
+ PangoFBFontListing *fl = NULL;
int i;
PangoFontDescription d2;
{
GdkWindowFBData *fbd = GDK_WINDOW_FBDATA(window);
GdkWindowProperty *prop, *new_prop;
- int new_size;
+ int new_size = 0;
GdkEvent *event;
g_return_if_fail (window != NULL);
if (!private->destroyed)
{
- GdkRegion *old_region;
+ GdkRegion *old_region = NULL;
GdkRectangle old_rect;
if(private->input_only)