Skip to content
Browse files

pushing some tweaks made recently on idapad

  • Loading branch information...
1 parent 83f8e20 commit 6f315ea261eab90b7fe54c202cdf62d421755e70 @lcuk committed Mar 21, 2011
Showing with 25 additions and 6 deletions.
  1. +1 −0 mklibliqbase_copy.sh
  2. +8 −1 src/liqcanvas.c
  3. +3 −4 src/liqcell_easyrun.c
  4. +12 −0 src/liqx11info.c
  5. +1 −1 src/liqx11overlay.c
View
1 mklibliqbase_copy.sh
@@ -5,4 +5,5 @@
cd ~/svn_tab/libliqbase/
if make; then
scp -r ./src/libliqbase.so.1 root@10.0.0.8:/usr/lib
+ scp -r ./media/* root@10.0.0.8:/usr/share/liqbase/libliqbase/media
fi
View
9 src/liqcanvas.c
@@ -283,7 +283,14 @@ int liqcanvas_init(int pixelwidth,int pixelheight,int fullscreen)
return -1;
}
-
+ int dw=0;
+ int dh=0;
+ if(fullscreen)
+ {
+ liqx11info_get_default_screen_dimensions(&dw,&dh);
+ pixelwidth = dw;
+ pixelheight = dh;
+ }
liqapp_log("liqcanvas_init start wh %d,%d",pixelwidth,pixelheight);
if(liqcanvas_init_inner(pixelwidth,pixelheight,fullscreen)!=0)
View
7 src/liqcell_easyrun.c
@@ -376,10 +376,9 @@ static void savethumb(liqcell *cell)
liqimage_pagesavepng(img,buf);
-
- void post_to_liqbase_net(const char *filename, const char *datakey);
-
- post_to_liqbase_net(buf,"screenshot");
+ // sync will do this better
+ // void post_to_liqbase_net(const char *filename, const char *datakey);
+ // post_to_liqbase_net(buf,"screenshot");
//01:49:32 png writing png
View
12 src/liqx11info.c
@@ -148,6 +148,18 @@ int liqx11info_regrab_focus(liqx11info *myx11info)
+int liqx11info_get_default_screen_dimensions(int *pixelwidth,int *pixelheight)
+{
+ Display * mydisplay;
+ int myscreen;
+
+ mydisplay = XOpenDisplay("");
+ myscreen = DefaultScreen(mydisplay);
+ *pixelwidth = DisplayWidth(mydisplay,myscreen);
+ *pixelheight = DisplayHeight(mydisplay,myscreen);
+ XCloseDisplay(mydisplay);
+ return 0;
+}
//#############################################################
View
2 src/liqx11overlay.c
@@ -382,7 +382,7 @@ int liqx11overlay_refreshdisplay(liqx11overlay *self)
0, 0, self->yuv_image->width, self->yuv_image->height,
0, 0, _w, _h, True);//False);//True);
// set the true flag :)
- // XSync(self->dpy,False);
+ XSync(self->dpy,False);
}

0 comments on commit 6f315ea

Please sign in to comment.
Something went wrong with that request. Please try again.