[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Jul 21 20:40:29 CEST 2004


CVS commit by staikos: 

use 8bit pixmap and make the pixmap size in the back buffer configurable


  M +4 -2      kst2dplot.cpp   1.166
  M +2 -2      kstbackbuffer.cpp   1.4
  M +1 -1      kstbackbuffer.h   1.3


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.165:1.166
@@ -60,5 +60,6 @@ Kst2DPlot::Kst2DPlot(const QString& in_t
                  KstScaleModeType xscale_in,
                  double xmin_in, double ymin_in,
-                 double xmax_in, double ymax_in) : KstPlotBase("Kst2DPlot") {
+                 double xmax_in, double ymax_in)
+: KstPlotBase("Kst2DPlot"), _buffer(8) {
   // Must stay here for plot loading correctness
   _pos_x = 0.0;
@@ -76,5 +77,6 @@ Kst2DPlot::Kst2DPlot(const QString& in_t
 
 
-Kst2DPlot::Kst2DPlot(QDomElement& e) : KstPlotBase(e) {
+Kst2DPlot::Kst2DPlot(QDomElement& e)
+: KstPlotBase(e), _buffer(8) {
   QString in_tag = "unknown";
   KstScaleModeType yscale_in = AUTO, xscale_in = AUTO;

--- kdeextragear-2/kst/kst/kstbackbuffer.cpp  #1.3:1.4
@@ -18,6 +18,6 @@
 #include "kstbackbuffer.h"
 
-KstBackBuffer::KstBackBuffer()
-: _buffer(0, 0, 16, QPixmap::MemoryOptim) {
+KstBackBuffer::KstBackBuffer(int depth)
+: _buffer(0, 0, depth, QPixmap::MemoryOptim) {
 }
 

--- kdeextragear-2/kst/kst/kstbackbuffer.h  #1.2:1.3
@@ -25,5 +25,5 @@
 class KstBackBuffer {
   public:
-    KstBackBuffer();
+    KstBackBuffer(int depth = -1);
     ~KstBackBuffer();
 





More information about the Kst mailing list