search for: rect

Displaying 20 results from an estimated 905 matches for "rect".

Did you mean: rec
2019 Dec 11
1
[PATCH 3/3] virtio-gpu: use damage info for display updates.
...104,26 @@ static int virtio_gpu_plane_atomic_check(struct drm_plane *plane, } static void virtio_gpu_update_dumb_bo(struct virtio_gpu_device *vgdev, - struct virtio_gpu_object *bo, - struct drm_plane_state *state) + struct drm_plane_state *state, + struct drm_rect *rect) { + struct virtio_gpu_object *bo = + gem_to_virtio_gpu_obj(state->fb->obj[0]); struct virtio_gpu_object_array *objs; + uint32_t w = rect->x2 - rect->x1; + uint32_t h = rect->y2 - rect->y1; + uint32_t x = rect->x1 + (state->src_x >> 16); + uint32_t y = rect-&...
2007 Aug 08
1
Help using gPath
Hi everyone,I'm trying to figure out how to use gPath and the documentation is not very helpful :( I have the following plot object: plot-surrounds:: background plot.gTree.378:: background guide.gTree.355:: (background.rect.345, minor-horizontal.segments.347, minor-vertical.segments.349, major-horizontal.segments.351, major-vertical.segments.353) guide.gTree.356:: (background.rect.345, minor-horizontal.segments.347, minor-vertical.segments.349, major-horizontal.segments.351, major-vertical.segments.353) yaxis.gTre...
2007 Oct 14
0
10 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...area diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c index 6adbe8a..867b30d 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -254,7 +254,7 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr, GList *layouts, *iter; SwfdecRect limit; SwfdecColor color; - int y, linenum; + int y, x, linenum; g_return_if_fail (SWFDEC_IS_TEXT_FIELD (text)); g_return_if_fail (cr != NULL); @@ -285,8 +285,9 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr, inval); linenum = 0; + x = SWFDEC_GRAPHIC (text...
2010 Apr 07
1
Quartering a plot() ?
Sorry if my terminology is all out of sorts here, but I'm curious about a simple matter: I have a plot, and within it a box defined by lines, like so: plot(c(), xlim=c(-1.5,1.5), ylim=c(0,5)) lines(c(1,1,-1,-1,1),c(1.5,3.5,3.5,1.5,1.5), col=c("red")) I'd like to easily chop the box drawn by lines into an even 3x3 grid- is this possible easily? Thanks! -- Wells Oliver
2009 Apr 03
0
dendrogram rect.hclust() not working?
I have tried to use rect.hclust() to draw a rectangle around a set of leaves, but am running into trouble. The rect.hclust() is drawing two rects instead of one, and of the wrong size: -------------------- scoreClusterObj <- hclust(scoreDistanceObj, method=clustMethod) order <- scoreClusterObj$order orderedLabe...
2019 Dec 12
0
[PATCH v2 3/3] virtio-gpu: use damage info for display updates.
...104,26 @@ static int virtio_gpu_plane_atomic_check(struct drm_plane *plane, } static void virtio_gpu_update_dumb_bo(struct virtio_gpu_device *vgdev, - struct virtio_gpu_object *bo, - struct drm_plane_state *state) + struct drm_plane_state *state, + struct drm_rect *rect) { + struct virtio_gpu_object *bo = + gem_to_virtio_gpu_obj(state->fb->obj[0]); struct virtio_gpu_object_array *objs; + uint32_t w = rect->x2 - rect->x1; + uint32_t h = rect->y2 - rect->y1; + uint32_t x = rect->x1; + uint32_t y = rect->y1; + uint32_t off = x * stat...
2000 Aug 21
2
rect() question.
Hello. I have another rect question. If I want to make a lot of rectangular, without borders, and without any spaces between them, how could I do it? I.e. > plot(-1:1., -1:1., type = "n") > rect(0,-1,1,1,col="red",lwd=0,border=F,xpd=T) > rect(-1,-1,0,1,col="blue",lwd=0,border=F,xpd=T...
2010 Jan 03
1
[PATCH] nouveau: nv50: fix ->pseudo_palette usage
Sometimes struct fb_fillrect::color is color, sometimes palette index. Steps to reproduce: make menuconfig Blue background will have quite random black color. Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com> --- drivers/gpu/drm/nouveau/nv50_fbcon.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletio...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...22f4c..2a39cb0 100644 --- a/libswfdec/swfdec_sprite_movie_as.c +++ b/libswfdec/swfdec_sprite_movie_as.c @@ -160,9 +160,8 @@ swfdec_sprite_movie_hitTest (SwfdecAsCon SwfdecMovie *movie = SWFDEC_MOVIE (obj); if (argc == 1) { - SwfdecMovie *other, *tmp; + SwfdecMovie *other; SwfdecRect movie_rect, other_rect; - guint movie_depth, other_depth; if (!SWFDEC_AS_VALUE_IS_OBJECT (&argv[0]) || !SWFDEC_IS_MOVIE (other = (SwfdecMovie *) SWFDEC_AS_VALUE_GET_OBJECT (&argv[0]))) { SWFDEC_ERROR ("FIXME: what happens now?"); @@ -170,70 +169,29 @@ swfde...
2015 Feb 02
2
[LLVMdev] Basic AliasAnalysis: Can GEPs with the same base but different constant indices into a struct alias?
On Mon, Feb 2, 2015 at 10:59 AM, Chandler Carruth <chandlerc at google.com> wrote: > > On Mon, Feb 2, 2015 at 10:55 AM, Ahmed Bougacha <ahmed.bougacha at gmail.com> > wrote: > >> Ah yes, the structs are what make it messy. >> >> How about the more useful constraint: >> - the (identical) base must point to a (possibly multidimensional) array >>
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...ec_text_field.h" @@ -91,293 +90,6 @@ swfdec_text_field_init (SwfdecTextField * text) text->scroll = 1; } -SwfdecLayout * -swfdec_text_field_generate_layouts (SwfdecTextField *text, cairo_t *cr, - const SwfdecParagraph *paragraphs, const SwfdecColorTransform *trans, - const SwfdecRect *inval, int *num) -{ - GArray *layouts; - guint i; - - g_return_val_if_fail (SWFDEC_IS_TEXT_FIELD (text), NULL); - g_return_val_if_fail (cr != NULL, NULL); - g_return_val_if_fail (paragraphs != NULL, NULL); - - layouts = g_array_new (TRUE, TRUE, sizeof (SwfdecLayout)); - - for (i = 0; paragr...
2006 May 10
2
Legend titles in log plots broken? (ver. 2.2.1)
...;, lty = 1, title = 'Legend Title') If you save the value legend() returns you can look at it and see that it's messed up: l <- legend(x = 'topright', inset = 0.04, legend = '1/x', lty = 1, title = 'Legend Title') > l $rect $rect$w [1] 0.2349272 $rect$h [1] 0.2727899 $rect$left [1] 0.7618728 $rect$top [1] 1.9936 $text $text$x [1] 0.9188374 $text$y [1] 1.81174 > R.Version() $platform [1] "i686-redhat-linux-gnu" $arch [1] "i686" $os [1] "linux-gnu" $system [1] "i686, lin...
2010 Oct 09
1
Plot time range with rect or boxplot
Hi, I am trying to use rect (R2.11) to plot a set of data as following > data Company Pt Pri Pub 1 A WO520 8/5/09 2/11/10 2 B WO893 7/30/03 2/24/05 3 A WO258 12/8/08 6/17/10 4 C...
2010 Dec 01
2
How to draw a rect() behind a hist() ?
Hi, I have the following code: hist(gps$heartpercent, breaks=5) rect(90, par("usr")[3], 100, par("usr")[4], col = "red") How do I get the rectangle to appear behind the histogram. Barring that, how can I make certain bars of the histogram to be a certain color? Thanks, Jason
2011 Sep 16
1
cutree() and rect.hclust(): different labelling of classes
I've found that while cutree() and rect.hclust() make the same classes for a given height in the dendrogram, the actual labeling of the classes is different. For example, both produce the same 4 classes but class 1 according to cutree() is class 4 according to rect.hclust(). Would it be possible that future versions provide the same lab...
2012 Aug 26
0
[ wxruby-Bugs-29632 ] Missing "=" in rect.rb
Bugs item #29632, was opened at 2012-08-26 08:38 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=29632&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: mark wonttell (runnerle) Assigned to: Nobody (None) Summary: Missing "=" in rect.rb Initial Comment: Hello, in rect.rb on line 15, there is missing an "=" for the comparision of get_right and other.ge...
2005 Jan 10
1
Invisible plot using RSvgDevice
Dear list members, I have a probably simple question concerning the RSvgDevice. After upgrading from R 1.9.0 to R 2.0.1 the computet svg files looking empty. Each time the RSvgDevice 0.5.3 were used. Scales and headers are printed but the plots are missing: <rect x="433.10" y="246.13" width="0.93" height="29.74" style="stroke-width:1;stroke:none;fill:none"/> <rect x="434.02" y="201.52" width="0.93" height="74.35" style="stroke-width:1;stroke:none;fill:none&q...
2010 Oct 20
1
need for speed on grid.rect
When I use grid.rect to print a multi-coloured grid, it is incredibly slow compared to a single colour grid, or even a two colour grid. I've set out some simplified examples below. This is something I run literally thousands of times a day, so I would greatly appreciate any hints on how I might improve the speed??...
2004 Apr 05
1
rect.hclust fails when k is specified (PR#6740)
Full_Name: Ivan Egorov Version: 1.8.1 OS: MS Windows 2000, SP4 Submission from: (NULL) (194.186.91.129) V<-t(matrix(scan('C:/V3.dat'),3)) d<-dist(V) hc<-hclust(d) rect.hclust(hc,5) Error message is displayed: Read 24 items Error in rect(m[which[n]] + 0.66, par("usr")[3], m[which[n] + 1] + 0.33, : plot.new has not been called yet Here's my data file ('C:/V3.dat') -1 -73 12 -70 -26 -8 -78 -101 -35 -38 -24 -16 39 -54 3 -40 -13 -19...
2006 Oct 19
2
bug in rect (PR#9307)
Full_Name: Joe Voelkel Version: 2.4.0 OS: Windows XP Submission from: (NULL) (129.21.11.37) Using "border=NA" in the call to rect generates an error. But the help file says border=NA is acceptable. (The problem is that border=NA evaluates to TRUE for "is.logical(border)" inside the function. Using rect with border=FALSE works fine)