Screen rotation on Tornado WM6?? - HTC Tornado

The question was: Is the screen rotation possible on Tornado devices (for example for better Internet browsing).
Many efforts were done to gain this possibility. We have not fully received what we need, but we're on good way. We know now that the standard Tornado DDI.DLL driver is uncapable of screen rotation, so we (partially) replaced it with one taken from HTC Vox ROM. There is one serious disadvantage we're still working about: the joystick doesn't follow orientation for now, so using the phone in landscape mode is seriously difficult. We will be trying to adopt the Vox's keybddr.dll into Tornados.
I have collected all these things in an application, that you can install to skip manual registry editing.
Here is the application:
http://www.mediadrain.com/TDM_1.0.0.cab
You MUST install the following certificates! If not, a hard reset will be required!
http://www.mediadrain.com/WMtequan.cab
To rotate the screen select Change Driver option from the Display Driver option, and change to a VOX one.

i don't think it will be supported on this alpha version...!!!

qtek_metanol said:
i don't think it will be supported on this alpha version...!!!
Click to expand...
Click to collapse
this isn't connected
OS either supports screen rotation or not

WM6 supports screen rotation, like on the vox, so surely we could do the same for tornado but add some start menu shortcuts or a home screen plugin to make it rotate?
Phil

i tried writing an app in .net compact framework. While it worked and rotated a PPC WM5, it didn't work in my SP WM6.
maybe .net is hard-coded and disallows screen rotation on smartphone, what doesn't mean it's impossible

WM6 supports screen rotation, like on the vox, so surely we could do the same for tornado but add some start menu shortcuts or a home screen plugin to make it rotate
Click to expand...
Click to collapse
may you need the dll file from VOX which enable the screen rotation by opening the keyboard

i think we should write a list with Q&A, and other with Bugs, Do have somebody a list with a resume of troubles...??

i build a .NET project that allow to rotate the screen, but for me it works ONLY on emulator SDK only in both WM5 and WM6 why? i post the exe and the source.. give me some answer..
Code:
#include <windows.h>
#include <stdafx.h>
int
WINAPI
WinMain(
HINSTANCE,
HINSTANCE,
#ifdef UNDER_CE
LPWSTR,
#else
LPSTR,
#endif
int
)
{
DEVMODE DevMode;
int RotationAngles;
int CurrentAngle;
int NewAngle;
//
// Check for rotation support by getting the rotation angles supported.
//
memset (&DevMode, 0, sizeof (DevMode));
DevMode.dmSize = sizeof (DevMode);
DevMode.dmFields = DM_DISPLAYQUERYORIENTATION;
if (DISP_CHANGE_SUCCESSFUL == ChangeDisplaySettingsEx(NULL, &DevMode, NULL, CDS_TEST, NULL))
{
RotationAngles = DevMode.dmDisplayOrientation;
RETAILMSG(1, (L"ChangeDisplaySettingsEx supports these rotation angles %d", RotationAngles));
}
else
{
RETAILMSG(1, (L"ChangeDisplaySettingsEx failed to get the supported rotation angles."));
RotationAngles = -1;
}
//
// Get the current rotation angle.
//
memset(&DevMode, 0, sizeof (DevMode));
DevMode.dmSize = sizeof (DevMode);
DevMode.dmFields = DM_DISPLAYORIENTATION;
if (DISP_CHANGE_SUCCESSFUL == ChangeDisplaySettingsEx(NULL, &DevMode, NULL, CDS_TEST, NULL))
{
CurrentAngle = DevMode.dmDisplayOrientation;
RETAILMSG(1, (L"ChangeDisplaySettingsEx reports the current rotation as %d", CurrentAngle));
}
else
{
RETAILMSG(1, (L"ChangeDisplaySettingsEx failed to get the current rotation angle."));
CurrentAngle = -1;
}
//
// Rotate to the "next" angle.
//
if (CurrentAngle >= 0 && RotationAngles >= 0)
{
NewAngle = CurrentAngle;
do
{
NewAngle <<= 1;
if (NewAngle == DMDO_0)
{
NewAngle = DMDO_90;
}
if (NewAngle > DMDO_270)
{
NewAngle = DMDO_0;
}
} while (!(NewAngle & RotationAngles) && (NewAngle != DMDO_0));
memset(&DevMode, 0, sizeof (DevMode));
DevMode.dmSize = sizeof (DevMode);
DevMode.dmFields = DM_DISPLAYORIENTATION;
DevMode.dmDisplayOrientation = NewAngle;
if (DISP_CHANGE_SUCCESSFUL == ChangeDisplaySettingsEx(NULL, &DevMode, NULL, CDS_RESET, NULL))
{
RETAILMSG(1, (L"ChangeDisplaySettingsEx changed rotation angle to %d", NewAngle));
}
else
{
RETAILMSG(1, (L"ChangeDisplaySettingsEx failed to change the rotation angle to %d", NewAngle));
}
}
return 0;
}

giuseppebitonti said:
i build a .NET project that allow to rotate the screen, but for me it works ONLY on emulator SDK only in both WM5 and WM6 why? i post the exe and the source.. give me some answer..
Click to expand...
Click to collapse
Hey, I have a Vox (s710) for a few days so I could search which application is used by this phone to rotate the screen.

kartam said:
Hey, I have a Vox (s710) for a few days so I could search which application is used by this phone to rotate the screen.
Click to expand...
Click to collapse
that would be great mate. we'll be waiting for it.

bad news...
i found this somewhere in eMbedded VC++ documentation:
Screen rotation requires support from the display driver, which maintains information regarding rotation. Screen rotation is currently supported only on devices that use a single screen and is not supported on multiple screen devices.
An application calls the ChangeDisplaySettingsEx function to determine the screen orientation modes that the system supports, to set the angle by which the screen is rotated, and to query the current angle of rotation
Click to expand...
Click to collapse
I've written small utility (C++, native code just to be sure that no funny hardcode in compact framework is messing) and i've tested it on SPV C600 and TYTNII. On TYTN all was OK (screen rotated), on C600 (WM6) error was 'DISP_CHANGE_BADMODE' - exactly like described in docs...
so (IMHO): display driver (heh.. I suspected that there is sth like display driver ) just does not support screen rotation, so no matter that WM6 supports it...
we got two choices:
- find better one (heh... i do not even know the name of the file... but this i can find - i think i saw it once where i was plaing with regedit )
- live with 0 degrees rotation

It is necessary patch driver from vox. It approaches, but incorrectly turnoff screen. Illumination does not die away, and after that the image is displaced on 15 pixels to the right. With the all perfectly rotates. Except for joystick...

kmz said:
It is necessary patch driver from vox. It approaches, but incorrectly turnoff screen. Illumination does not die away, and after that the image is displaced on 15 pixels to the right. With the all perfectly rotates. Except for joystick...
Click to expand...
Click to collapse
could you uploader the driver plz

How can I find the driver in the ROM?

http://kmz.ho.com.ua/dispdriver.vox.zip
Here the driver and the certificate by which is signed the driver.

so we got POC done, now time for hard reset
driver supports screen rotation, but it got problems with display time out - when backlight should be off it is on, but screen becomes white and it's premament (until reboot).
Just for info - U can use MyMobiler to operate - no matter that screen is dead, phone itself is still doing his job

Hey, that is great
Good job guys, i'm sure you guys can improve it.
Just some suggestion, perhaps you can make some application which will toggle landscape/potrait and map it to one of the shortcut keys such as long_volup

driver supports screen rotation, but it got problems with display time out - when backlight should be off it is on, but screen becomes white and it's premament (until reboot).
Just for info - U can use MyMobiler to operate - no matter that screen is dead, phone itself is still doing his job
Click to expand...
Click to collapse
Excelent work Qlphn, what about the joystick control? It changes the way to control the Joystick when you switch to Panorama Modus?
THX

Has anyone got the Tornado display driver? I could probably check differences with windiff and hexedit it .

Hey!
I managed to do this with DDI driver you've attached.
Well, the joy doesn't follow orientation, screen rotation works. After some time my display takes weird colours. I hope this can be fixed anyway, well I will try to work it
Maybe only registry edit is required? I will compare vox registry with tornado one and say what I noticed.
Greetings

Related

DirectShow Camera Control On TMobile Shadow

Hi All,
I am using DirectShow API for fetching camera contents on T-Mobile Shadow phone (manufacturer is HTC). I am having problem with the default Camera Zoom factor on this phone (when opened using DirectShow). I am trying to control the Zoom factor using IAMCameraControl interface. But I don't get any valid pointer for IAMCameraControl Inteface by using following code =>
$$$$$$$$$$$$$$$$$$$$$$$$$$$
long camera_flags = 0;
long zoom_val = 0;
IAMCameraControl* pCameraControl = NULL;
pVideoCaptureFilter->QueryInterface(IID_IAMCameraControl,(void**)&pCameraControl);
if(NULL == pCameraControl)
{
result = E_NOTIMPL;
goto error_handler;
}
$$$$$$$$$$$$$$$$$$$$$$$$$$$
Looks like IAMCameraControl has not been implemented on this particular phone. Is there any other way to change default Camera Zoom factor on HTC phones?
I came to know about HTC Camera DLL using this forum. How should I go about getting the Camera DLL and the documentation?
Thanks,
Shashi

(Tweak) Real fullscreen browsing on HD2!!

Hi guys!
Frustrated with the Opera browser on the HD2, I decided to take matters into my own hands
What really bugged me was the inability to see the whole page when browsing the web, and by that I mean go fullscreen… This is possible on the iPhone, Nexus one, Hero, Pre etc. but not on the HD2!
The reason behind all this: Virtual Screen Width….
The resolution on, lets say the iPhone, is poor 480x320… Most webpages are AT LEAST coded in 1024x768…
The reason why the iPhone, with its inferior resolution, is able to go fullscreen on most webpages, is because Safari lets the iPhone use Virtual Screen Width… "Virtual" is the keyword here …
On the HD2 we are blessed with the wonderful native resolution at 800x400 pixels .. This is all great, but there is one problem: Its not 1024, 1156 or 1280… Its 800x400… = 800 in width = crippled page view!
The problem is that Opera, on default, isn't configured with any sort of "virtual" screen width… It is 800 pixels all the way…
But!
We can activate the Virtual Screen Width, and thereby go fullscreen on any webpage= No more crippled web browsing!
Go to:
[HKEY_LOCAL_MACHINE\Software\Opera\Prefs\Adaptative Zoom]
Change "Virtual Screen Width" from "800" (The native screen width) to "1024", "1152", "1280", "1366" or whatever suits your browsing needs
My configuration is like this (Gives a good overview, without destroying visibility):
[HKEY_LOCAL_MACHINE\Software\Opera\Prefs\Adaptative Zoom]
Virtual Screen Width: 1024
Hope you guys enjoy
Update: Some people are experiencing some problems with "double tab to zoom"... This most likely has to do with another tweak in relation to "Default Zoom" in [HKEY_LOCAL_MACHINE\Software\Opera\Prefs\Adaptative Zoom] .... If you have changed this value, please change it back to value "175"... My browsing experience is perfect... Fullscreen, double tab, smooth etc. To me the HD2 is now a real internet device
Update 2: Here are some other tweaks, provided by astrodemoniac in another thread: http://forum.xda-developers.com/showthread.php?t=626157
I post it here to create a better overview of whats possible "tweaking" wise on the Opera Browser:
Increase Scrolling FPS:
[HKEY_LOCAL_MACHINE\Software\Opera\Info]
PanFps=50
Increase Zooming FPS:
[HKEY_LOCAL_MACHINE\Software\Opera\Info]
ZoomFps=50
Lower Default Zoom:
[HKEY_LOCAL_MACHINE\Software\Opera\Prefs\Adaptative Zoom]
Default Zoom=100 (I would advise to just keep it on 175, as it works perfectly with my fullscreen tweak.. Some people lose "double tab to zoom" when editing this value.. Keep it on 175!!
+ these tweaks (mainly from tboy2000):
Increase the font cache for displaying text quicker:
HKLM\Software\Opera\Info\
fontcachesize = 64
(default was 32)
Source: this thread (item #76)
Complete page loading = Avoid the unfamous "checkerboard background"
HKLM\Software\Opera\MemoryLimits:
AllocLimit = 70254592
HeapLimit = 73400320
memory_heap_threshold_size = 131072
mmap_reserve_size = 20971520
sbrk_reserve_size = 49283072
Source: this thread (item #76)
If using the newest Opera build from 1.67:
Enable this new Opera to open favorites on the Sense internet tab
HKLM/Software/Opera/Info
UseOperaBookmark = 0
(default = 1)
Enable this new Opera to download files on Storage Card
HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\ SDMemory
Folder = Storage Card
Thx!
I'm not sure I got this right...
- Does your tweak work on landscape or portrait? Because this thread here already talks about full screen in, I believe, portrait views. Will you tweak have influence on both portrait and landsape?
- Could you make a screen capture, so we can understand? (BTW, BsB tweak use very simple ways to make screen captures)
rzasharp said:
I'm not sure I got this right...
- Does your tweak work on landscape or portrait? Because this thread here already talks about full screen in, I believe, portrait views. Will you tweak have influence on both portrait and landsape?
- Could you make a screen capture, so we can understand? (BTW, BsB tweak use very simple ways to make screen captures)
Click to expand...
Click to collapse
It works in both portrait and landscape.. The tweak you refer to adjusts the zoom levels... Not the visual width....
You can see "my" tweak as the key to full screen browsing like on your laptop or whatever... It makes your screen "believe" its actually, lets say 1024 in width, instead of 800... An amazing difference.. Try it out and you will never go back
Nice find!! The full page view is indeed awesome!
But i noticed that double tap zooming doesn't work anymore. But who cares! The fullpage view matters more.
Thanks!
thanks
but it lose the double tap zoom function
Niiiice!!!
I dont lose double tap zooming..!!
(maybe cause i applied all the tweaks for smoothness etc plus this one in the latest opera from 1.67 rom..found here i think!)
kostasalfa said:
Niiiice!!!
I dont lose double tap zooming..!!
(maybe cause i applied all the tweaks for smoothness etc plus this one in the latest opera from 1.67 rom..found here i think!)
Click to expand...
Click to collapse
Maybe is due to opera build. Mine is 9.7 build 35627. I think I probably should upgrade to the newer build.
Edit :
The double tap zooming is gone when this tweak is used with this,
Lower Default Zoom (Really takes advantage of the HD2 beautiful screen)
[HKEY_LOCAL_MACHINE\Software\Opera\Prefs\Adaptative Zoom]
Default Zoom=100
Simply change the default zoom back to 130 and double tap zooming will work again.
myth1001 said:
Maybe is due to opera build. Mine is 9.7 build 35627. I think I probably should upgrade to the newer build.
Edit :
The double tap zooming is gone when this tweak is used with this,
Lower Default Zoom (Really takes advantage of the HD2 beautiful screen)
[HKEY_LOCAL_MACHINE\Software\Opera\Prefs\Adaptative Zoom]
Default Zoom=100
Simply change the default zoom back to 130 and double tap zooming will work again.
Click to expand...
Click to collapse
I also loose double tap to zoom, but only in portrait mode. In landscape it is ok. I set the screen width to 1024. Also my registry key is called 'Virtual Screen Width' not 'Visual Screen Width'
My opera build is 9.7 build 35577. I am on ROM 1.48.405.2 WWE
BTW my original value for the Default Zoom is 175 not 130. I have tried using 130 but it doesn't work. The only way it seems to get the double tap to work in portrait mode is to change the screen width back to 800.
Pinch zooms works ok though.
Are we actually talking about the "VIRTUAL SCREEN WIDTH"
Changed the setting to 1024, looks good. Thanks for the tip
+1 double tap zoom is gone
abucas said:
The only way it seems to get the double tap to work in portrait mode is to change the screen width back to 800.
Click to expand...
Click to collapse
change to 1000. double tap work in portrait (and landscape)
with 1024 work only in landscape, for me (and you)
uvz said:
change to 1000. double tap work in portrait (and landscape)
with 1024 work only in landscape, for me (and you)
Click to expand...
Click to collapse
Yes that works, Thanks
abucas said:
Yes that works, Thanks
Click to expand...
Click to collapse
1020 is better, 1023 not work
Nomination
A real beauty, this tweak. Thanks for sharing.
I would like to nominate this tweak, together with the default zoom-level tweak, for a Grammy Award in the category `best Opera tweaks´
EDIT: added a little cab that changes the "Virtual Screen Width" to 1024. The benefit of using a cab is that when u unistall the cab, the default value is restored. (@ OP: feel free to attach this cab to your own post. The author rights are all yours )
appelflap said:
A real beauty, this tweak. Thanks for sharing.
I would like to nominate this tweak, together with the default zoom-level tweak, for a Grammy Award in the category `best Opera tweaks´
EDIT: added a little cab that changes the "Virtual Screen Width" to 1024. The benefit of using a cab is that when u unistall the cab, the default value is restored. (@ OP: feel free to attach this cab to your own post. The author rights are all yours )
Click to expand...
Click to collapse
i would actually advise people that those who want to still be able to use double tap zoom to not use this cab.
By default, 1024 disables double tap.
I recommend 1023, or better, 1000.
I figured this trick not too long ago.
See my post. http://forum.xda-developers.com/showpost.php?p=5510142&postcount=3
Not fully related, but is there a way to disable the soft buttons always appearing during page loading? I find it highly annoying that it always brings the buttons and address bar up, rescaling the page at the same time, and making it a pain to scroll during loading... I only need those if I press the bottom right "menu" button, not all the time automatically...
lemonspeakers said:
i would actually advise people that those who want to still be able to use double tap zoom to not use this cab.
By default, 1024 disables double tap.
I recommend 1023, or better, 1000.
I figured this trick not too long ago.
See my post. http://forum.xda-developers.com/showpost.php?p=5510142&postcount=3
Click to expand...
Click to collapse
I have no problems with the double-tap zoom feature. I'm on opera 9.7 35758. What version are you running? (sounds like a weird bug to me)
Changed it to 1280... look awesome, still have my double-tap. Haven't updated my Opera build yet.
Great, it really works fine and should have been the default parameters for Opera!!! I really can't understand why a community like ours is able to change some simple numbers and get the best out of our HD2 ! Anyway, here are the tweaks I use for Opera from now on:
Fullscreen view on portrait and landscape (actually "Full Width")
This enable a webpage to be fully seen when you first load the page.
HKEY_LOCAL_MACHINE\Software\Opera\Prefs\Adaptative Zoom
Visual Screen Width = 1000
(default was 800 ??)
(real full screen = 1024, but with this, double-tap zoom does not work anymore)
Source: this thread
Lower Default Zoom => I don't use, as it disables the double tap !!
[HKEY_LOCAL_MACHINE\Software\Opera\Prefs\Adaptative Zoom]
Default Zoom=100
(default = )
Source: this thread
Smoother scrolling = Increase Scrolling FPS
HKEY_LOCAL_MACHINE\Software\Opera\Info
PanFps=50
(default = )
Source: this thread
Smoother pinch-and-zoom = Increase Zooming FPS
HKEY_LOCAL_MACHINE\Software\Opera\Info
ZoomFps=50
(default = )
Source: this thread
Increase the font cache for displaying text quicker
HKLM\Software\Opera\Info\
fontcachesize = 64
(default was 32)
Source: this thread (item #76)
Complete page loading = Avoid the unfamous "checkerboard background"
HKLM\Software\Opera\MemoryLimits:
AllocLimit = 70254592
HeapLimit = 73400320
memory_heap_threshold_size = 131072
mmap_reserve_size = 20971520
sbrk_reserve_size = 49283072
Source: this thread (item #76)
My Opera build is also the latest, from the leaked ROM 1.67 found here. With this new build, though, even more tweaks are needed... because I'm using the official HTC ROM 1.66
Enable this new Opera to open favorites on the Sense internet tab
HKLM/Software/Opera/Info
UseOperaBookmark = 0
(default = 1)
Enable this new Opera to download files on Storage Card
HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SDMemory
Folder = Storage Card
(I use a french ROM and the latest official ROM 1.66 translates the word "storage card" to french, making Opera not able to know where the microSD card. This tweak solves it)
And finally, I also use BsB tweak 1.6 to enable more tabs for Opera and to enable link click even when zoomed out...
Damn... I think we really need some BIG CAB to easily change this all... I just don't know how to make it. Help
I changed my pinch zoom framerate to 50 the other day, and yes, it's much better... but is there a way to increase the rate of zooming. I don;t like having to pinch several times when on my 3GS I only have to do it once. I know I can just double-tap, but still...

[Q] Gallery3D Only support Portrait Mode phone?

Hi All,
we are now developing Android phone on mmp2 board which is of landscape mode. We found Galley3D works perfectly on portrait mode phone while has a problem on landscape one. As you know Gallery3D can tilt pictures/videos according to values of Gsensor. But the Gsensor’s coordinator on landscape mode phone is different from that of portrait. This difference make Galley3D’s not working well on our mmp2 board, i.e., Gallery3D only supports portrait mode phone. Below is for the details:
Let’s take a look at onSensoChanged function in file GridInputProcessor.java, Gallery3D calculates the tilt value from X-axis value (values [0]) / Y-axis value (values [1]) depends on the compare of current display’s width and height.
public void onSensorChanged(RenderView view, SensorEvent event, int state) {
…..
switch (event.sensor.getType()) {
case Sensor.TYPE_ACCELEROMETER:
float[] values = event.values;
/*tilt value is calculated from X-axis value (values [0]) / Y-axis value (values [1]) */
float valueToUse = (mCamera.mWidth < mCamera.mHeight) ? values[0] : -values[1];
float tiltValue = 0.8f * mPrevTiltValueLowPass + 0.2f * valueToUse;
…… }
break;
}
}
For Portrait mode phone:
(1) When Gallery3D is in Portrait mode, tiltValue uses value of X axis since mWidth < mHeight, Galley3D would tilt the pictures when X value of Gsensor changes, this behavior is expected.
(2) When Gallery3D is in Landscape mode, tiltValue uses value of Y axis since mWidth > mHeight, Galley3D would tilt the pictures when Y value of Gsenso changes, this behavior is expected.
/samba/PortraitMode.bmp
For Landscape mode phone:
(3) When Gallery3D is in Portrait mode, tiltValue uses value of Y axis since mWidth < mHeight, Galley3D would tilt the pictures when Y value of Gsensor changes changes, this behavior is unexpected.
(4) When Gallery3D is in Landscape mode, tiltValue uses value of X axis since mWidth > mHeight, Galley3D would tilt the pictures when value of X value of Gsensor changes, this behavior is unexpected.
/samba/LandscapeMode.bmp
Questions:
(1) Do we have solution to fix this issue? Is that in APP?
(2) There are some other Gsensor games in the market has the same issue, i.e., only support Portrait mode phone, e.g., the Teeter Game, is there any idea for the workaround in framework/SensorHAL so that those games can still be used in Landscape mode phone?
Hope above is clear; we are looking forward to your kindly reply and many thanks in advance.
it definitely supports landscape, I'm using it on my Dell streak using leaked eclair firm ware, quick is forced/ locked landscape.
unless Dell have altered the code, which can't tell because they won't release the source, can't really help much more than that. just to let you know that it works
Landscape works perfect on 3D gallery for my Evo with Froyo.
Can someone post an appbrain/androlib link or a QR code? I cannot find this app
It's a stock application...
Oh, mine is not called that. It's just "Gallery"

Add leading 0 (zero) on lockscreen clock

Hi guys - Happy New Year.
Can anyone tell me how to add a leading '0' (zero) to the lockscreen clock?
I have used a large number of lockscreens, NONE of them have a leading zero. I am using 24hour time. I have the leading zero on the home tab, and on the top taskbar menu. I cannot seem to get it on the lockscreen.
eg: Lockscreen shows 8:00. I want 08:00.
Thanks in advance.
PS - I can get the zero with lockscreen widgets in CHT2. BUT I want it without any widget add ons.
Try Start-Settings-System-Regional Settings-Time [Page]-Time style HH:mm:ss
hgalanos said:
Hi guys - Happy New Year.
Can anyone tell me how to add a leading '0' (zero) to the lockscreen clock?
I have used a large number of lockscreens, NONE of them have a leading zero. I am using 24hour time. I have the leading zero on the home tab, and on the top taskbar menu. I cannot seem to get it on the lockscreen.
eg: Lockscreen shows 8:00. I want 08:00.
Thanks in advance.
PS - I can get the zero with lockscreen widgets in CHT2. BUT I want it without any widget add ons.
Click to expand...
Click to collapse
Thanks for your reply. I have changed the regional settings to:
hh:mm:ss and also
HH:mm:ss
Nothing happens. The flip clock stays without a zero.
If you are looking for lockscreen with leading zero try manals Windows LockScreen V4 http://forum.xda-developers.com/showthread.php?t=854047
with settings below it have leading zero for sure. (This is standard windows lockscreen modification, not CHT)
hgalanos said:
Thanks for your reply. I have changed the regional settings to:
hh:mm:ss and also
HH:mm:ss
Nothing happens. The flip clock stays without a zero.
Click to expand...
Click to collapse
The Touch x 24 hours clock fixes the alarm and lockscreen so they now appear as 08:00.
However nothing I have tried works for the home screen flip clock.
Anyone?
Try reg:
[HKEY_LOCAL_MACHINE\nls\overrides]
"STFmt"="HH:mm:ss tt" // (Ex: 08:00 AM or 20:00 PM)
"SSDte"="dd-MM-yyyy" // (Ex: 08-01-2011)
Yep, already tried/checked that. It is as you wrote it.
ALL clocks are showing leading zero, just not Manila home flip clock. Very strange.
Surely there is a way to change it.
hgalanos said:
Yep, already tried/checked that. It is as you wrote it.
ALL clocks are showing leading zero, just not Manila home flip clock. Very strange.
Surely there is a way to change it.
Click to expand...
Click to collapse
It will be controlled by the LUA script for the CHT main clock (assuming it is the main one with various flip/analog/weather options. I'll have a look over the weekend if you like?
Would I be safe in assuming you've already gone to the manila settings tab, date & time and then ticked 24-hour format?
Swarvey said:
Would I be safe in assuming you've already gone to the manila settings tab, date & time and then ticked 24-hour format?
Click to expand...
Click to collapse
Yes you would be safe in assuming this.
As per the ealier threads, time format, local settings have all been checked and changed. Even the registry. Nothing changes the flip clock have a leading zero.
Depending on what version of cht or sense you have it will be in the lua. There should be a statement near the top that says "shouldhideleadingzeros = true" you just need to change it to false and recompile.
EDIT:
Looked into it a little more for you and the file is 5fa4d4b7_manila from your stock sense.
Code:
-- Decompiled using luadec 3.2.2beta -- Tue Jan 11 10:19:35 2011
-- File name: 5fa4d4b7_manila
trace("Loaded digital clock\n")
TabHalf = {Tab = nil, HighDigit = nil, LowDigit = nil}
UV = {UP = 0.26171875, DOWN = 0.5234375}
TabHalf.new = function(l_1_0, l_1_1)
if not l_1_1 then
l_1_1 = {}
end
setmetatable(l_1_1, l_1_0)
l_1_0.__index = l_1_0
return l_1_1
end
TabFlip = {Time = 0, TimeDifference = 0, ShowingTime = 0, WrapAroundNumber = 0, StartValue = 0, [B][COLOR="Red"][B]ShouldHideLeadingZeros = true[/B][/COLOR][/B], TopTab = nil, TopTabFlip = nil, BottomTab = nil, BottomTabFlip = nil, LastDuration = -1, UseAltTiming = false, rotatecount = 1, getDuration = function(l_2_0)
if l_2_0.UseAltTiming then
Wow, I have stock version of 1.72 WWE ROM.
It sound like you are on a winner.
I will check this out tonight when I get home and see what I can do.
Thank you for the information, I will be sure to let you know what happens.
mrhayami said:
Depending on what version of cht or sense you have it will be in the lua. There should be a statement near the top that says "shouldhideleadingzeros = true" you just need to change it to false and recompile.
EDIT:
Looked into it a little more for you and the file is 5fa4d4b7_manila from your stock sense.
Code:
-- Decompiled using luadec 3.2.2beta -- Tue Jan 11 10:19:35 2011
-- File name: 5fa4d4b7_manila
trace("Loaded digital clock\n")
TabHalf = {Tab = nil, HighDigit = nil, LowDigit = nil}
UV = {UP = 0.26171875, DOWN = 0.5234375}
TabHalf.new = function(l_1_0, l_1_1)
if not l_1_1 then
l_1_1 = {}
end
setmetatable(l_1_1, l_1_0)
l_1_0.__index = l_1_0
return l_1_1
end
TabFlip = {Time = 0, TimeDifference = 0, ShowingTime = 0, WrapAroundNumber = 0, StartValue = 0, [B][COLOR="Red"][B]ShouldHideLeadingZeros = true[/B][/COLOR][/B], TopTab = nil, TopTabFlip = nil, BottomTab = nil, BottomTabFlip = nil, LastDuration = -1, UseAltTiming = false, rotatecount = 1, getDuration = function(l_2_0)
if l_2_0.UseAltTiming then
Click to expand...
Click to collapse
ok so I couldn't wait and though I would give it a go now. I have found the same Manila file you have listed, I also downloaded lua utility. How doesn this work, I ran it on my pc and nothing happens.
How can I edit the file?
hgalanos said:
ok so I couldn't wait and though I would give it a go now. I have found the same Manila file you have listed, I also downloaded lua utility. How doesn this work, I ran it on my pc and nothing happens.
How can I edit the file?
Click to expand...
Click to collapse
Well I suggest downloading the manila kitchen by 12 and kilaireg found here:
Thread
It will tell you how to run everything you need but the down and dirty is this.
Copy the manila file into this directory "kitchen>_source>file>xxxx_manila
then use the command prompt link and drag the file manilatool.cmd into the cmd window.
your main commands are going to be as followed in order:
-oem:2.5
-mnf:2.5
-dec
(now that it is decompiled you will be edit the lua in notepad save and then move to the next step.)
Notice: not all files will decompile correctly and you may have to tweak it to get it to decompile correctly.
-cmp (only if it does not fully decompile aka. you have the file in your incomplete folder.)
-rec (will recompile the file which you can then put on your device and enjoy)
I know it isn't much but as I said they have detailed info in the pack.
In case anyone is still trying to figure this out.
I installed the latest 314 WWE ROM and it supports a leading zero on the original manila clock.
Awesome.
hgalanos said:
Hi guys - Happy New Year.
Can anyone tell me how to add a leading '0' (zero) to the lockscreen clock?
I have used a large number of lockscreens, NONE of them have a leading zero. I am using 24hour time. I have the leading zero on the home tab, and on the top taskbar menu. I cannot seem to get it on the lockscreen.
...
Click to expand...
Click to collapse
If you set PocketShield clock display to 24h it will display the leading 0
NO fix as yet.
Guys,
I have to apologise, I don't know what planet I was on, but the new 314 ROM, does NOT fix this issue. There is still no leading zero for manila flip clock.
Anyway have a fix that works?
I have no idea how to edit manila files, and have not been successful is doing so.
I will have to rely on someone generous enough to do it for me.
Thank you in advance to anyone willing to help.

[Q] glReadPixels() Problem in Android to reconstruct the frame

I am working on a project on Augmented Reality with Android. The code captures the camera video, finds the marker and displays a cube on top of it. After this a motion vector (in the form of pixels moved in the x and y direction) is found. What I need to do is read the pixels from the GL layer and draw them again after moving them by the distance specified by the motion vector.
The GL layer is specified using the GLSurfaceView class which is a transparent layer. The problem I am facing is that when I use glReadPixels() to read the pixels and convert it into a 480x800 array (nexus one screen resolution), I get 3 different portions of the cube instead of one.
I intend to move the pixels by the motion vector after this and use glDrawPixels() to put the pixels back into the frame buffer
Please help me with the interpretation of the same. Is there something I am missing while using glReadPixels and also if there is some other function that will help me achieve the same. I was thinking of using glBlitFrameBuffer() but this is not supported by the android GL10 class.
I have attached the part of the code where I am reading the pixels and changing them to a 2D matrix along with the image of the pixels I reconstructed using MatLab.
Any help will be greatly appreciated.
Code:
gl.glPixelStorei(GL10.GL_PACK_ALIGNMENT, 1);
IntBuffer pixels = IntBuffer.allocate(384000);
gl.glReadPixels(0, 0, 800, 480, GL10.GL_RGBA, GL10.GL_UNSIGNED_BYTE ,pixels);
File f = new File ("./mnt/sdcard/Sahiba_PixelData_" + flag + ".txt");
if(!f.exists())
f.createNewFile();
FileWriter fw = new FileWriter(f);
int pixelsArr [][] = new int [480][800];
//int temp[] = pixels.array();
int n=0;
for(int i=0; i<480; i++){
for(int j=0; j<800; j++){
pixelsArr[i][j] = pixels.get(n);
//temp[n + pixels.arrayOffset()];
fw.write(pixelsArr[i][j] + " ");
//fw.write(pixels.get(n) + " ");
n++;
}
//fw.write("\n");
}
Log.i("GLLayer", "Pixels reading and storing finished !!!");
}catch(Exception e){
Log.i("GLLayer","Exception = " +e);
}

Categories

Resources