Commit 53def9b7 authored by Darin Adler's avatar Darin Adler

gdk_draw_pixmap -> gdk_draw_drawable.

	* test-ft-gtk.c: (scroll_to): gdk_draw_pixmap -> gdk_draw_drawable.
parent d2cdcae5
2001-08-24 Darin Adler <darin@bentspoon.com>
* test-ft-gtk.c: (scroll_to): gdk_draw_pixmap -> gdk_draw_drawable.
2001-08-22 Darin Adler <darin@bentspoon.com>
* configure.in: Require newer libart.
......
......@@ -221,23 +221,23 @@ scroll_to (TestCtx *ctx, int new_y)
y0 = height - scroll_amt;
y1 = height;
if (ctx->do_scrolling) {
gdk_draw_pixmap (drawingarea->window,
drawingarea->style->white_gc,
drawingarea->window,
0, scroll_amt,
0, 0,
width, y0);
gdk_draw_drawable (drawingarea->window,
drawingarea->style->white_gc,
drawingarea->window,
0, scroll_amt,
0, 0,
width, y0);
}
} else if (scroll_amt < 0 && -scroll_amt < height) {
y0 = 0;
y1 = -scroll_amt;
if (ctx->do_scrolling) {
gdk_draw_pixmap (drawingarea->window,
drawingarea->style->white_gc,
drawingarea->window,
0, 0,
0, y1,
width, height - y1);
gdk_draw_drawable (drawingarea->window,
drawingarea->style->white_gc,
drawingarea->window,
0, 0,
0, y1,
width, height - y1);
}
} else {
y0 = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment