Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
38 user(s) are online (27 user(s) are browsing Forums)

Members: 0
Guests: 38

more...

Headlines

Forum Index


Board index » All Posts (thomas)




Re: newshell con-handler
Not too shy to talk
Not too shy to talk


@Amigo1

* is an escape character when used in double quotes. To get an asterisc you need to enter **.

Your already opened testscreen probably is not public, therefore it opens a new one which is public when you request it.

Go to top


Re: c:search template
Not too shy to talk
Not too shy to talk


@Amigo1

Why bother ?

list sys: all files lformat=%p%n p=filer

does exactly what you ask for.

"Search" initially was only meant to search strings in files. To search file names "List" is the better choice IMHO.

Go to top


Re: Listbrowser help
Not too shy to talk
Not too shy to talk



Go to top


Re: Problems with PIPE:
Not too shy to talk
Not too shy to talk


@nbache

What happens if you do

nbytes = IDOS->Read(fd[0], readbuffer, 1);

?

Go to top


Re: Write protected partitions with SCSI -> IDE Bridge
Not too shy to talk
Not too shy to talk


@mugo

Quote:
it works fine in MOS and previous AOS


The author of the original (68K) cybppc.device did a lot of tweaking to work around wrong or missing termination and other incompatibilities. The MOS version is from the same author, so probably has the same tweakings. The AOS4 version is from a different author who didn't even have the specs of the CSPPC, so I could well imagine that the AOS4 version is far less tolerant against wrong cabling and the like.

Bye,
Thomas

Go to top


Re: Why only move of window with heavy app, slowdown it?
Not too shy to talk
Not too shy to talk


@kas1e

The problem is not CPU load but gfx update speed. You gave mplayer as an example. Mplayer does not cause CPU load. Its problem is moving gfx data to the window at high speed all the time.

I am sure that a program like this, which causes the highest CPU load possible, will not slow down window movement:

int main (void)
{
    for (;;)
    {
    }
}


Writing a 24bit RGB buffer into a screen with BGRA pixel format is very slow on my A1. This has nothing to do with heavy CPU load.

Mplayer is trying to play the movie as smooth as possible, i.e. it keeps updating the window all the time. While writing a movie frame to the window, the window is blocked from other updates. This means mplayer keeps the window locked almost continuously. Only every now and then it unlocks it for a few microseconds when it calculates the next frame. And only in these short breaks, the OS can move the window.

That gfx update is slow on the A1 you can also see in PicShow if you enable cross-fading. With a resolution of 800x600 it runs just as fast as realtime. Any higher resolution leads to stuttering.

The same on WinUAE runs completely smoothly even on 1280x1024.

Go to top


Re: Why only move of window with heavy app, slowdown it?
Not too shy to talk
Not too shy to talk


@kas1e

While you move the window the application is blocked from updating the window contents. That's why the video stutters. On the other hand, the OS is not allowed to move the window while the application updates it, that's the reason why you cannot move the window smoothly. The app and the OS are fighting for access to the window contents.

Go to top


Re: Where are the 'left out' desktop icons stored
Not too shy to talk
Not too shy to talk


@JosDuchIt

Quote:

JosDuchIt wrote:
I copied most of my Aimiga OS4 partition to my datas: partition, made the last bootable with a higher priorities, and rebooted. Everything oK but where are my left out desktop icons ?

Joseph



Each partition has its own .backdrop file. If you move an icon from one partition to another, you have to leave it out again in order to add it to the .backdrop file of the destination partition.

Bye,
Thomas

Go to top


Re: Use device .... Update pb
Not too shy to talk
Not too shy to talk


@freddix

Microseconds only contains the fractional part of the time. This means it could be used as a random number, bot not to measure intervals of multiple seconds.

You would need to use something like

NewTimer = (MyTimeVal->Seconds % 86400) * 1000000 + MyTimeVal->Microseconds;

to get the number of microseconds since midnight.

Go to top


Re: Annoying ParseDate() function
Not too shy to talk
Not too shy to talk


@orgin

Quote:

Seems it's not possible to parse something that looks like:

"20010116-20.39"
"%Y%m%d-%H.%M"



Yes, I got this problem, too. That's why I added the / to the format.

%Y probably reads the entire number until the first non-numeric character appears. Perhaps you can specify something like %4Y or %.4Y. I am not so familar with this scanf-like stuff.

Quote:
I just get random garbage from it


You should check the return value. If ParseDate returns false, it has not found a result.

Go to top


Re: Annoying ParseDate() function
Not too shy to talk
Not too shy to talk



Go to top


Re: OS3.9 woes
Not too shy to talk
Not too shy to talk


@Daz

Prefs/IControl -> 1:1 Aspect Ratio

Go to top


Re: Mousewheel Button double click, how?
Not too shy to talk
Not too shy to talk


@fingus

I don't think FKey can do this. One would have to write another program which translates middle-button clicks into left-button double-clicks. You could try to contact the author of AllKeys. It should be quite easy for him to add this functionality to his program, if it does not have it already.

Bye,
Thomas

Go to top


Re: Failure to register DvPlayer
Not too shy to talk
Not too shy to talk


When I registered (in 2005) I got a confirmation e-mail from reg.net showing the order number and the amount I payed and one day later I got an e-mail from Stephen with the same order number and the full version as attachment.

So the info seems to be correct that reg.net handles the payment but the author should deliver the product (after he received the info from reg.net).

Bye,
Thomas

Go to top


Re: Layers.library and OS4.1 compositing mode
Not too shy to talk
Not too shy to talk


@abalaban

Quote:
can it be possible that such sort of things were possible with previous AOS memory allocator while it's not anymore in current AOS4's one ?


At least in 3.x freed memory stayed in place until it was reused and could still be accessed, although it is illegal.



Quote:
and deleted in another one (described by the four last items).


Ok, but you could extract the pointers before you delete the layer.

APTR layer rp->Layer;
APTR bitmap rp->BitMap;
DeleteLayer (layer);
FreeBitMap (bitmap);




Quote:
Anyway what nasty thing can it cause even if not clip were installed ?


If the previous clip region was NULL, too, the InstallClipRegion(NULL) does not change anything, so it cannot do nasty things.

Bye,
Thomas

Go to top


Re: Layers.library and OS4.1 compositing mode
Not too shy to talk
Not too shy to talk


@abalaban

DeleteLayer will free all memory allocated by Create#?Layer, so your RastPort will be gone and you must not access it any more.

The question is why you would need to extract the bitmap from the rastport although you already know it because you allocated it yourself ?

The same applies to extracting the layer from the rastport when you extracted the rastport from the layer just before. A little too much "extracting" for my taste.

And why do you InstallClipRegion(NULL) if you never did InstallClipRegion(anything) ?

Bye,
Thomas

Go to top


Re: check if a program has been started many times?
Not too shy to talk
Not too shy to talk


@Antique

Quote:
struct Task *mytask=FindTask("blu_manager");
if ((mytask!=0) && (mytask!=FindTask(0)))


This only works if the program has been started from the Workbench. If it's started from shell, the task name will be "Shell Process", so that FindTask will fail and your program can be started twice.

The usual way to prevent a program from being started twice is to create a public message port or a public semaphore after you have checked that it does not already exist.

Bye,
Thomas

Go to top


Re: Finding arexx port of window at pos x,y
Not too shy to talk
Not too shy to talk


Quote:
for (window = screen->FirstWindow; window; window = window->NextWindow)


This does not work in all cases. Windows are not strictly ordered front to back, depending on WFLG_BACKDROP. I had to learn this lesson for LimpidClock. The only way to really get the right window is using layers and then get the window which belongs to the layer.


Quote:
Anyone ever tried creating AppMessages manually and sending them to window->UserPort?


Funnny idea. Why should an IDCMP port can do anything with AppMessages ? AppMessages have to be sent to the port which was supplied to the CreateAppWindow call. This is usually not the window's IDCMP port.

Go to top


Re: Graphics Memory
Not too shy to talk
Not too shy to talk


@Ant

Quote:
In ScreenMode I`m using HIGHGFX:Super-High Res Laced. Is the Indivision AGA using to much of the graphics memory or is it something else and how can I get more graphics memory?


The Indivision does not need any memory. But your Workbench screen does. The standard screenmode (PAL Hires 640x256 with 4 colors) needs 80 kb of gfx RAM. Your screen of 1024x768 needs 96 kb per bitplane, so with 256 colors you'd need 768 kb. This cannot be changed. Every displayable bitmap must be in gfx RAM (that's what gfx RAM is for).

NewIcons need another bunch of gfx RAM for each icon which is displayed on the screen. This could be changed by FBlit. But I don't think it's worth the incompatibilities which FBlit creates.

You should rather consider to make another boot partition or an option in your startup-sequence to have the standard screenmode without newicons for gaming and the high-resolution screen for other things.

Bye,
Thomas

Go to top


Re: Finding arexx port of window at pos x,y
Not too shy to talk
Not too shy to talk


@orgin

Quote:
- Can I find out which top most window is located at that position?


Yes. You can examine the layers (I think there is even a function which returns the topmost layer at an x/y position) and then check which rastport the layer belongs to and which window the rastport belongs to.


Quote:
- Can I find the arexx port for the application owning that window?


No. You cannot even find out the application. You can only guess that if the window has an IDCMP port that the mp_SigTask points to the application's task and then find out the name of the appl through the task name (if run from Workbench) or the CLI command name (if run from Shell).

Then you could try to guess the ARexx port name by using a task name / port name cross reference list.

Bye,
Thomas

Go to top



TopTop
« 1 ... 6 7 8 (9) 10 11 12 ... 14 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project