X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2FEmacsFrame.c;h=fbb6800ab4d7c8fcfdd7fff52b7466f60e3f7e3a;hb=09b372c3074a7cc339a61b2297583f2b9edefe86;hp=78ac737dda5c128d4c40652345c93aed368fed04;hpb=716cfba952c1dc0d2cf5c968971f3780ba728a89;p=chise%2Fxemacs-chise.git.1 diff --git a/src/EmacsFrame.c b/src/EmacsFrame.c index 78ac737..fbb6800 100644 --- a/src/EmacsFrame.c +++ b/src/EmacsFrame.c @@ -185,7 +185,7 @@ static XtResource resources[] = { offset (bell_volume), XtRImmediate, (XtPointer)0 }, { XtNuseBackingStore, XtCUseBackingStore, XtRBoolean, sizeof (Boolean), - offset (use_backing_store), XtRImmediate, (XtPointer)0 }, + offset (use_backing_store), XtRImmediate, (XtPointer) NotUseful }, { XtNpreferredWidth, XtCPreferredWidth, XtRDimension, sizeof (Dimension), offset (preferred_width), XtRImmediate, (XtPointer)0 }, @@ -235,7 +235,11 @@ EmacsFrameClassRec emacsFrameClassRec = { /* resource_count */ XtNumber (resources), /* xrm_class */ NULLQUARK, /* compress_motion */ TRUE, +#ifdef LWLIB_USES_MOTIF /* compress_exposure */ TRUE, +#else + /* compress_exposure */ XtExposeCompressMaximal | XtExposeNoRegion, +#endif /* compress_enterleave */ TRUE, /* visible_interest */ FALSE, /* destroy */ NULL, @@ -517,7 +521,7 @@ EmacsFrameSetValues (Widget cur_widget, Widget req_widget, Widget new_widget, if (cur->core.width == new->core.width && cur->core.height == new->core.height) { - int i; + Cardinal i; for (i=0; i<*argc; i++) if (strcmp (argv[i].name, XtNwidth) == 0 || strcmp (argv[i].name, XtNheight) == 0) @@ -638,7 +642,7 @@ EmacsFrameRecomputeCellSize (Widget w) struct frame *f = ew->emacs_frame.frame; if (! XtIsSubclass (w, emacsFrameClass)) - abort (); + ABORT (); default_face_height_and_width (make_frame (f), &ch, &cw); if (FRAME_X_TOP_LEVEL_FRAME_P (f))