ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mintv/mintv.cpp
(Generate patch)

Comparing mintv/mintv.cpp (file contents):
Revision 1.6 by cebix, 2003-03-21T14:59:19Z vs.
Revision 1.7 by cebix, 2003-09-24T16:35:16Z

# Line 463 | Line 463 | port_found:
463                  NULL
464          );
465          XtRealizeWidget(app_shell);
466        Cursor null_cursor = XCreateFontCursor(dpy, XC_left_ptr);
467        XDefineCursor(dpy, XtWindow(app_shell), null_cursor);
466          XtVaSetValues(app_shell,
467                  XtNtitle, "mintv",
468                  XtNinput, True,
# Line 473 | Line 471 | port_found:
471          XSetWMProtocols(dpy, XtWindow(app_shell), &wm, 1);
472          gc = XCreateGC(dpy, XtWindow(video), 0, NULL);
473  
474 +        // Hide cursor
475 +        Colormap cmap = DefaultColormap(dpy, DefaultScreen(dpy));
476 +        XColor black;
477 +        XParseColor(dpy, cmap, "#000000", &black);
478 +        XAllocColor(dpy, cmap, &black);
479 +        static char null_data[] = {0, 0, 0, 0, 0, 0, 0, 0};
480 +        Pixmap null_pixmap = XCreateBitmapFromData(dpy, XtWindow(video), null_data, 8, 8);
481 +        Cursor null_cursor = XCreatePixmapCursor(dpy, null_pixmap, null_pixmap, &black, &black, 0, 0);
482 +        XDefineCursor(dpy, XtWindow(video), null_cursor);
483 +
484          // Set image format
485          unsigned format = XV_FORMAT;
486  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines