gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash gui/gtk.cpp gui/gtksup.h gui/Makefile.am ...


From: Hannes Mayr
Subject: Re: [Gnash-commit] gnash gui/gtk.cpp gui/gtksup.h gui/Makefile.am ...
Date: Mon, 16 Oct 2006 12:41:35 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Hello Bastiaan,

+void
+GtkAggGlue::prepDrawingArea(GtkWidget *drawing_area)
+{
+    _drawing_area = drawing_area;
+
+    gtk_widget_get_size_request(_drawing_area, &_width, &_height);
+
+    _width   = (_width == -1) ? 0 : _width;
+    _height  = (_height == -1) ? 0 : _height;

How can _width and _height ever be -1 if you set them to zero in init() and you check that they are greater than zero in setRenderHandlerSize()?

actually this is useless and a leftover from my previous code. I removed it with my last commit.


Hannes





reply via email to

[Prev in Thread] Current Thread [Next in Thread]