[byzanz] Really remove all traces of limited bpp support
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [byzanz] Really remove all traces of limited bpp support
- Date: Mon, 17 Aug 2009 13:27:48 +0000 (UTC)
commit 6dca96aa36d72a1ab77dca8749092bc7d892a2b3
Author: Benjamin Otte <otte gnome org>
Date: Mon Aug 17 15:24:54 2009 +0200
Really remove all traces of limited bpp support
And test in Xephyr that Byzanz now actually does record from 16bpp fine.
src/byzanzrecorder.c | 4 ----
src/record.c | 8 --------
2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/byzanzrecorder.c b/src/byzanzrecorder.c
index 5a977a3..e5dfc4d 100644
--- a/src/byzanzrecorder.c
+++ b/src/byzanzrecorder.c
@@ -786,8 +786,6 @@ byzanz_recorder_new (const gchar *filename, GdkWindow *window, GdkRectangle *are
g_return_val_if_fail (area->y >= 0, NULL);
g_return_val_if_fail (area->width > 0, NULL);
g_return_val_if_fail (area->height > 0, NULL);
- g_return_val_if_fail (gdk_drawable_get_depth (window) == 24 || \
- gdk_drawable_get_depth (window) == 32, NULL);
fd = g_open (filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
if (fd < 0)
@@ -808,8 +806,6 @@ byzanz_recorder_new_fd (gint fd, GdkWindow *window, GdkRectangle *area,
g_return_val_if_fail (area->y >= 0, NULL);
g_return_val_if_fail (area->width > 0, NULL);
g_return_val_if_fail (area->height > 0, NULL);
- g_return_val_if_fail (gdk_drawable_get_depth (window) == 24 || \
- gdk_drawable_get_depth (window) == 32, NULL);
dpy = gdk_x11_display_get_xdisplay (gdk_display_get_default ());
if (dmg_event_base == 0) {
diff --git a/src/record.c b/src/record.c
index d12afb1..7e6b15b 100644
--- a/src/record.c
+++ b/src/record.c
@@ -102,7 +102,6 @@ main (int argc, char **argv)
{
ByzanzRecorder *rec;
GOptionContext* context;
- GdkWindow *window;
GError *error = NULL;
g_set_prgname (argv[0]);
@@ -129,13 +128,6 @@ main (int argc, char **argv)
usage ();
return 0;
}
- window = gdk_get_default_root_window ();
- if (gdk_drawable_get_depth (window) != 24 &&
- gdk_drawable_get_depth (window) != 32) {
- g_print (_("Byzanz requires a 24bpp or 32bpp depth for recording. "
- "The current resolution is set to %dbpp."), gdk_drawable_get_depth (window));
- return 2;
- }
rec = byzanz_recorder_new (argv[1], gdk_get_default_root_window (),
&area, loop, cursor);
if (rec == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]