OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Qtopia - Sharp c860 - Portrait mode tweaks back to 320x240
post Jan 26 2004, 07:25 AM
Post #1





Group:
Posts: 0
Joined: --
Member No.: 0



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?
Go to the top of the page
 
+Quote Post
Mickeyl
post Jan 26 2004, 08:16 AM
Post #2





Group: Members
Posts: 1,497
Joined: 12-November 03
From: Germany
Member No.: 907



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).
Go to the top of the page
 
+Quote Post
Stubear
post Jan 27 2004, 04:15 AM
Post #3





Group: Members
Posts: 1,164
Joined: 17-December 03
From: Melbourne, AUSTRALIA
Member No.: 1,219



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.
Go to the top of the page
 
+Quote Post
post Jan 27 2004, 06:45 AM
Post #4





Group:
Posts: 0
Joined: --
Member No.: 0



QUOTE
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.
Go to the top of the page
 
+Quote Post
post Jan 27 2004, 08:27 AM
Post #5





Group:
Posts: 0
Joined: --
Member No.: 0



mickeyl, you must use gdb for crack libsl smile.gif
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 *
********************************************************************************
*******/

#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
Go to the top of the page
 
+Quote Post
Mickeyl
post Jan 27 2004, 02:04 PM
Post #6





Group: Members
Posts: 1,497
Joined: 12-November 03
From: Germany
Member No.: 907



Nice work, however the OpenZaurus team won't use closed source libraries like libsl, so we have to do it without it.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd August 2014 - 09:44 AM