[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnash-commit
Subject:    [Gnash-commit] /srv/bzr/gnash/trunk r11734: support canvas resizing
From:       John Wimer <john () god ! vtic ! net>
Date:       2009-12-23 8:17:55
Message-ID: E1NNNLA-0002xp-Uy () sv ! gnu ! org
[Download RAW message or body]

------------------------------------------------------------
revno: 11734
committer: John Wimer <john@god.vtic.net>
branch nick: trunk
timestamp: Wed 2009-12-23 09:17:55 +0100
message:
  support canvas resizing and correct the log_debug(_q()) mistake
modified:
  gui/Kde4GlueAgg.cpp
  gui/Kde4Gui.cpp
  gui/Kde4Gui.h

["r11734.diff" (r11734.diff)]

=== modified file 'gui/Kde4GlueAgg.cpp'
--- a/gui/Kde4GlueAgg.cpp	2009-07-10 15:44:55 +0000
+++ b/gui/Kde4GlueAgg.cpp	2009-12-23 08:17:55 +0000
@@ -95,16 +95,10 @@
 void
 Kde4AggGlue::render(const QRect& updateRect)
 {
-
-// log_debug("Render region: %d, %d, %d, %d", updateRect.topLeft().x(),
-//updateRect.topLeft().y(), updateRect.bottomRight().x(),
-//updateRect.bottomRight().y());
-
     QPainter p(_drawing_area);
    
     p.drawImage(updateRect, *_image, updateRect);
     p.end();
-
 }
 
 

=== modified file 'gui/Kde4Gui.cpp'
--- a/gui/Kde4Gui.cpp	2009-12-22 23:51:32 +0000
+++ b/gui/Kde4Gui.cpp	2009-12-23 08:17:55 +0000
@@ -164,17 +164,26 @@
     _validbounds.setTo(0, 0, _width, _height);
     _glue.initBuffer(_width, _height);
     
-    log_debug(_q("Setting renderer"));
+    log_debug(_("Setting renderer"));
 
     _runResources.setRenderer(_renderer);
     
-    log_debug(_q("Set renderer"));
+    log_debug(_("Set renderer"));
    
     return true;
 }
 
 
 void
+Kde4Gui::resizeWindow(int width, int height)
+{
+    _width = width;
+    _height = height;
+
+    _drawingWidget->setMinimumSize(_width, _height);
+}
+
+void
 Kde4Gui::popupMenu(const QPoint& point)
 {
     QMenu popupMenu(_drawingWidget);

=== modified file 'gui/Kde4Gui.h'
--- a/gui/Kde4Gui.h	2009-11-16 12:57:54 +0000
+++ b/gui/Kde4Gui.h	2009-12-23 08:17:55 +0000
@@ -127,6 +127,7 @@
     virtual bool init(int argc, char **argv[]);
     virtual bool createWindow(const char* windowtitle, int width, int height,
                               int xPosition = 0, int yPosition = 0);
+    virtual void resizeWindow(int width, int height);
     virtual bool run();
     virtual void renderBuffer();
     virtual void setInterval(unsigned int interval);



_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-commit


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic