Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 204751
Collapse All | Expand All

(-)electricsheep-2.6.8/electricsheep.c (-1 / +1 lines)
Lines 2124-2130 Link Here
2124
	strcat(curl_cmd, " --show-error");
2124
	strcat(curl_cmd, " --show-error");
2125
    }
2125
    }
2126
2126
2127
    srandom(time(0));
2127
    srandom(time(0) + getpid());
2128
2128
2129
    not_playing();
2129
    not_playing();
2130
2130
(-)electricsheep-2.6.8/mpeg2dec/libvo/video_out_x11.c (-4 / +8 lines)
Lines 531-544 Link Here
531
    if (window_id == -3) {
531
    if (window_id == -3) {
532
      /* display zoomed on the (virtual) root window */
532
      /* display zoomed on the (virtual) root window */
533
      instance->window = DefaultRootWindow (instance->display);
533
      instance->window = DefaultRootWindow (instance->display);
534
      instance->displaywidth = DisplayWidth(instance->display, DefaultScreen (instance->display));
534
      XWindowAttributes xgwa;
535
      instance->displayheight = DisplayHeight(instance->display, DefaultScreen (instance->display));
535
      XGetWindowAttributes (instance->display, instance->window, &xgwa);
536
      instance->displaywidth = xgwa.width;
537
      instance->displayheight = xgwa.height;
536
    } else if (window_id == -2) {
538
    } else if (window_id == -2) {
537
      /* display non-zoomed on the (virtual) root window */
539
      /* display non-zoomed on the (virtual) root window */
538
      int w, h;
540
      int w, h;
539
      w = DisplayWidth(instance->display, DefaultScreen (instance->display));
540
      h = DisplayHeight(instance->display, DefaultScreen (instance->display));
541
      instance->window = DefaultRootWindow (instance->display);
541
      instance->window = DefaultRootWindow (instance->display);
542
      XWindowAttributes xgwa;
543
      XGetWindowAttributes (instance->display, instance->window, &xgwa);
544
      w = xgwa.width;
545
      h = xgwa.height;
542
      instance->corner_x = (w - instance->width)/2;
546
      instance->corner_x = (w - instance->width)/2;
543
      instance->corner_y = (h - instance->height)/2;
547
      instance->corner_y = (h - instance->height)/2;
544
    } else if (window_id == -1) {
548
    } else if (window_id == -1) {

Return to bug 204751