Fix warnings in compositing.

This commit is contained in:
Ms2ger 2015-02-13 10:25:51 +01:00
parent 26aee53c82
commit dda12e196b
3 changed files with 11 additions and 6 deletions

View file

@ -1190,9 +1190,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
for y in range(0, height) {
let dst_start = y * stride;
let src_start = (height - y - 1) * stride;
let src_slice = orig_pixels.slice(src_start, src_start + stride);
copy_memory(pixels.slice_mut(dst_start, dst_start + stride),
src_slice.slice_to(stride));
let src_slice = &orig_pixels[src_start .. src_start + stride];
copy_memory(&mut pixels[dst_start .. dst_start + stride],
&src_slice[..stride]);
}
let mut img = png::Image {
width: width as u32,

View file

@ -1084,7 +1084,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
return; // Our message has been discarded, probably shutting down.
}
let mut iter = frame_tree.iter();
let iter = frame_tree.iter();
for frame in iter {
frame.has_compositor_layer.set(true);
frame.pipeline.borrow().grant_paint_permission();

View file

@ -2,8 +2,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(box_syntax, plugin)]
#![feature(int_uint, core, libc, std_misc)]
#![feature(box_syntax)]
#![feature(core)]
#![feature(int_uint)]
#![feature(io)]
#![feature(libc)]
#![feature(rustc_private)]
#![feature(std_misc)]
#![allow(missing_copy_implementations)]