[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11734: support canvas resizing and
From: |
John Wimer |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11734: support canvas resizing and correct the log_debug(_q()) mistake |
Date: |
Wed, 23 Dec 2009 09:17:55 +0100 |
User-agent: |
Bazaar (2.0.2) |
------------------------------------------------------------
revno: 11734
committer: John Wimer <address@hidden>
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
=== 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11734: support canvas resizing and correct the log_debug(_q()) mistake,
John Wimer <=