OESF Portables Forum
Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Qt/Qtopia => Topic started by: Anonymous on January 26, 2004, 10:25:14 am
-
I noticed the board game go running on qtopia always tweak back to 320 * 240. I am using a Sharp C760 loaded with C780 ROM. I then cross compied qtopia-1.6.0-free-beta2/src/game/go and read through the program source gowidget.cpp, but cannot find out why the Sharp kernel tweaks back to this resolution. Any clue? What Qtopia programming technique I should watch out to prevent this?
-
Welcome to the wonderful world of closed source.
The only information can be found in the embedix kernel patch and in Piro\'s special kernel patch (google for that).
-
It\'s nothing to do with the sharp kernel, its qtopia that is changing to 230x240. Try starting the app from terminal and I bet it starts at 640x480.
You need to change the icon for go!
Tap and hold the icon for go, the details window will pop up.
Uncheck the Display with magnified screen box and go will run at 640x480.
I\'m not sure why (probably for compatability) but most of the ipks designed for the 5x00 series zaurus always default to magnified mode, just uncheck them and most will run fine at 640x480.
-
It\'s nothing to do with the sharp kernel, its qtopia that is changing to 230x240. Try starting the app from terminal and I bet it starts at 640x480.
You need to change the icon for go!
Tap and hold the icon for go, the details window will pop up.
Uncheck the Display with magnified screen box and go will run at 640x480.
I\'m not sure why (probably for compatability) but most of the ipks designed for the 5x00 series zaurus always default to magnified mode, just uncheck them and most will run fine at 640x480.
yes, you are very right! when triggered under terminal mode, its 640*480. and after changing the details window, it runs with 640*480! I never knew the details window and how to get it displayed. thanks so much.
-
mickeyl, you must use gdb for crack libsl
That turn 320x240 mode on 7x0/860 with stock kernel in kino2 mplayer frontend (dont need any kernel patches):
sash@sash:~/zaurus/SL-C750/video_player/kino2$ cat sldirectpainter.h
/********************************************************************************
*******
* ©opyleft Cacko Team,2003
* Kino2 video player
* http://www.cacko.biz (http://www.cacko.biz) *
********************************************************************************
*******/
#ifndef _SLDIRECTPAINTER_H_
#define _SLDIRECTPAINTER_H_
#include <qobject.h>
class SlDirectPainter : public QObject
{
Q_OBJECT
public:
SlDirectPainter(int, bool, int);
~SlDirectPainter();
bool begin(void);
bool end(void);
// int width(void);
// int height(void);
void *frameBuffer(void);
private sloteArray &data);
};
#endif
for switch to 320x240 mode just
.............
sdp = new SlDirectPainter(0x48, false, 0x1);
if (!sdp->begin()) {
qDebug(\"failed to begin sldirectpainter.n\");
} else {
qDebug(\"sldirectpainter ok.n\");
}
...............
for back to qtopia default screen
...............
delete sdp
...............
--sashz
-
Nice work, however the OpenZaurus team won\'t use closed source libraries like libsl, so we have to do it without it.