Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 162219 Details for
Bug 253599
Doesn't look nice when size changed
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Clear widget space outside the remote framebuffer region
gtk-vnc-clear.patch (text/plain), 1.07 KB, created by
Daniel Berrangé
on 2007-08-22 16:53:50 UTC
(
hide
)
Description:
Clear widget space outside the remote framebuffer region
Filename:
MIME Type:
Creator:
Daniel Berrangé
Created:
2007-08-22 16:53:50 UTC
Size:
1.07 KB
patch
obsolete
>diff -r 453f9ca2a737 src/vncdisplay.c >--- a/src/vncdisplay.c Wed Aug 22 10:40:33 2007 -0400 >+++ b/src/vncdisplay.c Wed Aug 22 12:48:09 2007 -0400 >@@ -103,6 +103,8 @@ static gboolean expose_event(GtkWidget * > VncDisplay *obj = VNC_DISPLAY(widget); > VncDisplayPrivate *priv = obj->priv; > int x, y, w, h; >+ GdkRectangle drawn; >+ GdkRegion *clear, *copy; > > if (priv->shm_image == NULL) > return TRUE; >@@ -114,9 +116,27 @@ static gboolean expose_event(GtkWidget * > w -= x; > h -= y; > >+ drawn.x = x; >+ drawn.y = y; >+ drawn.width = w; >+ drawn.height = h; >+ >+ clear = gdk_region_rectangle(&expose->area); >+ copy = gdk_region_rectangle(&drawn); >+ gdk_region_subtract(clear, copy); >+ >+ gdk_gc_set_clip_region(priv->gc, copy); > vnc_shm_image_draw(priv->shm_image, widget->window, >- priv->gc, >+ priv->gc, > x, y, x, y, w, h); >+ >+ gdk_gc_set_clip_region(priv->gc, clear); >+ gdk_draw_rectangle(widget->window, priv->gc, TRUE, expose->area.x, expose->area.y, >+ expose->area.width, expose->area.height); >+ >+ gdk_region_destroy(clear); >+ gdk_region_destroy(copy); >+ > return TRUE; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253599
:
161914
| 162219