[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] RFC: GdkGraphics fixlet
From: |
Roman Kennke |
Subject: |
[cp-patches] RFC: GdkGraphics fixlet |
Date: |
Thu, 22 Sep 2005 16:56:17 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.4 |
Hi,
While working on JViewport I have come across the native impl of
Graphics.copyArea in the GTK peers. It appeared to me that we call the
function gdk_window_copy_area there, which is marked as deprecated in the
GTK docs. I have replaced this by the equivalent function
gdk_draw_drawable. The intention was to make blitting work also for
backing store images. I don't know if the deprecated Window method could
also handle this. (It showed up that the bug that I was really hunting was
not in the native part).
At least it works fine here (it is used much in JViewport), but since I
never hacked on the native peer parts, I send this as RFC. Is this ok to
check in?
2005-09-22 Roman Kennke <address@hidden>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics_copyArea):
Replaced deprecated function call gdk_window_copy_area with
equivalent gdk_draw_drawable.
/Roman
GdkGraphics.diff
Description: Text Data
- [cp-patches] RFC: GdkGraphics fixlet,
Roman Kennke <=