Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. Index: src/modules/engines/buffer/evas_outbuf.c
  2. ===================================================================
  3. --- src/modules/engines/buffer/evas_outbuf.c (revision 61711)
  4. +++ src/modules/engines/buffer/evas_outbuf.c (working copy)
  5. @@ -23,7 +23,6 @@
  6. )
  7. {
  8. Outbuf *buf;
  9. - int y;
  10. int bpp;
  11.  
  12. buf = calloc(1, sizeof(Outbuf));
  13. @@ -51,9 +50,7 @@
  14. if ((buf->depth == OUTBUF_DEPTH_ARGB_32BPP_8888_8888) &&
  15. (buf->dest) && (buf->dest_row_bytes == (buf->w * sizeof(DATA32))))
  16. {
  17. - for (y = 0; y < h; y++)
  18. - memset(((unsigned char *)(buf->dest)) + (y * buf->dest_row_bytes),
  19. - 0, w * bpp);
  20. + memset(buf->dest, 0, w * h * bpp);
  21. buf->priv.back_buf = (RGBA_Image *) evas_cache_image_data(evas_common_image_cache_get(),
  22. w, h,
  23. buf->dest,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement