Kaydet (Commit) 637e8970 authored tarafından Ptyl Dragon's avatar Ptyl Dragon Kaydeden (comit) Jan Holesovsky

now showing blank tile

Change-Id: I76cbf205e19ffff83bea1ebae28f5172b2fbc250
üst 2ffb7509
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
-(void)initScrollView{ -(void)initScrollView{
self.scrollView = [UIScrollView new]; self.scrollView = [UIScrollView new];
self.scrollView.backgroundColor = [UIColor grayColor];
self.view = self.scrollView; self.view = self.scrollView;
} }
-(void)resize{ -(void)resize{
......
...@@ -55,7 +55,9 @@ ...@@ -55,7 +55,9 @@
#include <ndole.hxx> #include <ndole.hxx>
#include <ndindex.hxx> #include <ndindex.hxx>
#include <accmap.hxx> #include <accmap.hxx>
#include <vcl/bitmapex.hxx>
#include <svtools/colorcfg.hxx> #include <svtools/colorcfg.hxx>
#include <vcl/bmpacc.hxx>
#include <svtools/accessibilityoptions.hxx> #include <svtools/accessibilityoptions.hxx>
#include <accessibilityoptions.hxx> #include <accessibilityoptions.hxx>
#include <statstr.hrc> #include <statstr.hrc>
...@@ -64,6 +66,7 @@ ...@@ -64,6 +66,7 @@
#include <sortedobjs.hxx> #include <sortedobjs.hxx>
#include <anchoredobject.hxx> #include <anchoredobject.hxx>
#include <wrtsh.hxx> #include <wrtsh.hxx>
#include <vcl/alpha.hxx>
#include "../../ui/inc/view.hxx" #include "../../ui/inc/view.hxx"
#include <PostItMgr.hxx> #include <PostItMgr.hxx>
...@@ -1788,7 +1791,16 @@ void touch_lo_draw_tile(void * context, int contextWidth, int contextHeight, int ...@@ -1788,7 +1791,16 @@ void touch_lo_draw_tile(void * context, int contextWidth, int contextHeight, int
aDevice.SetOutputSizePixel(Size(contextWidth, contextHeight)); aDevice.SetOutputSizePixel(Size(contextWidth, contextHeight));
pViewShell->PaintTile(&aDevice, Rectangle(tilePosX, tilePosY, tileWidth, tileHeight)); pViewShell->PaintTile(&aDevice, Rectangle(tilePosX, tilePosY, tileWidth, tileHeight));
//TODO now get it to the 'context' BitmapEx aBitmapEx(aDevice.GetBitmapEx(Point(0,0), aDevice.GetOutputSizePixel()));
Bitmap aBitmap = aBitmapEx.GetBitmap();
BitmapReadAccess * readAccess = aBitmap.AcquireReadAccess();
touch_lo_copy_buffer((void *) readAccess->GetBuffer(),
tileWidth,
tileHeight,
readAccess-> GetScanlineSize(),
context,
contextWidth,
contextHeight);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment