Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
119 user(s) are online (66 user(s) are browsing Forums)

Members: 0
Guests: 119

more...

Headlines

Forum Index


Board index » All Posts (centaurz)




Re: Sane native?
Just popping in
Just popping in


The author of SCANdal asked for help to port the driver part to OS4 some time ago, I hope he got answers. No need to reinvent the wheel.

Edit: There's nothing preventing SANE from being adapted, AFAIR it features a USB abstraction layer that could be implemented with Sirion.

Go to top


Re: Desperately in need of a working debugger
Just popping in
Just popping in


@Raziel

Quote:

i know now how to and can exactly find the line in the file GrimReaper is pointing to

What exactly is the problem then ? You don't know how you landed into the function which threw that DSI/ISI/whatever... ?

Go to top


Re: Window under mouse?
Just popping in
Just popping in


@serpi

IntuitionBase->ActiveScreen

Go to top


Re: Float display
Just popping in
Just popping in


Quote:

I never understood why they chose to call the "more modern" RawDoFmt-replacement exactly like the full-fledged C runtime call, but dont implement the full functionality (thats a reason to ask where it indeed IS more modern, besides the name).

It seems quite obvious SNPrintf (just like ASPrintf) was only added to fill the gap missing in the RawDoFmt family (since there already was Printf, FPrint, VPrintf etc...), not to be compatible with snprintf. Same goes for StrlCat, StrlCpy... If you need C runtime flavours in a shared library, better use newlib. BTW, the new FormatString32() of locale.library seems quite useless now since AFAIK no system function make use of it.

Go to top


Re: Float display
Just popping in
Just popping in


@abalaban

Quote:

There was a time when mixing DOS I/O calls with C runtime I/O calls wasn't a good idea since then I try to not mix them as safety measure.

Indeed, this is not a good idea to mix them for standard I/O (unless you Flush() DOS streams and fflush() C streams between the two). However, if I got it right you just want to format a buffer, so here using snprintf() is not a problem at all since neither malloc() nor standard streams are involved. And if you are not in a shared library there is no issue with startup code. Maybe portability is not a good reason to use it, but code simplicity is, I would not extract by hand fractional part just to avoid using snprintf("%f")

Go to top


Re: Float display
Just popping in
Just popping in


@abalaban

Quote:

I don't understand what can block inclusion of %f and %g into RawDoFmt now


Double floats alignment issues with 68k args arrays, I would say.

Go to top


Re: Float display
Just popping in
Just popping in


Standard C library I'm afraid... You can link with snprintf() in a shared library.

Go to top


Re: New IntuitionPlus for next AmigaOS version !
Just popping in
Just popping in


@TSK

The builtin skins are nice.

Go to top


Re: Developper documentation: official status ?
Just popping in
Just popping in


@Xenic

Quote:

There is a lot more information and explanations in the RKMs than you will find in the AutoDocs. I would have never been able to program anything on my Amiga1000 without those manuals.


Well, I never told the contrary. To this list you can add the Amiga Guru Book which is invaluable when it comes to programming with DOS library (handlers, I/O...) since the RKRM don't say a word about it.

Go to top


Re: Developper documentation: official status ?
Just popping in
Just popping in


@Mrodfr

Quote:

-The content of the books could be used to make PDF or internet page with their contents for freely helping the programmers to have a modern method to know the amiga systems ?

Hem... between crawling with AmiPDF orOWB, and using Autodoc Reader or similar, my choice is done. Converting everything to "modern" format does not necesarily means it will be more efficient. Well, maybe for cross-compiling, but is it really worth the time spent ? Not to mention such things should better be generated from the source code like Autodocs.

Go to top


Re: IUtility->SNPrintf bug
Just popping in
Just popping in


@tonyw

I've never had trouble using e.g. "%d" to output integers with DebugPrintF(), the documentation does not refer to RawDoFmt-style formatting but standard printf one.
Regarding the alignment issue with int64, it may be a limitation of the linear varargs versus standard ABI.

Go to top


Re: IUtility->SNPrintf bug
Just popping in
Just popping in


@TSK

This is mentioned in the documentation for RawDoFmt() which is used by (almost) every Amiga API function needing to format a character stream. So you will meet the same requirements for PrintF() & friends, SNPrintF() & friends, requesters, Reaction classes format strings using varargs...

An exception to this is DebugPrintF() (and possibly the only one).

Go to top


Re: Virtual gadget? (was:[Solved]Plain and simple rectangle)
Just popping in
Just popping in


@Deniil

Could be, after all there is no example for this in the SDK.
Did you try with a custom backfill hook ?

Go to top


Re: MPlayer development thread
Just popping in
Just popping in


@varthall

Quote:

[...] (I'm thinking of CGX vs. P96 - later CGX vs. new OS4 gfx subsystem, ARexx vs. Python, eventually MUI vs. Reaction - later MUI vs. QT)

Ahem, what is QT doing in there ?

Go to top


Re: ListBrowser gadget question
Just popping in
Just popping in


@Coder

You can find rather comprehensive examples in sdk:Examples/Reaction/OS4Examples/ListBrowser/.

Go to top


Re: A possible bug in the p96 GetBitMapAttr function
Just popping in
Just popping in


@Deniil

Quote:

Is depth now defined as the amount of legacy pens Workbench managed to allocate or something..?!

No, you still have 256 (software) pens on high/true color screens.

Since a screen cannot be transparent it's no surprise it has a 24-bit depth. I suppose window bitmaps on a composited screen are 32-bit deep.

Go to top


Re: A possible bug in the p96 GetBitMapAttr function
Just popping in
Just popping in


@Massi

From graphics.library autodoc (GetBitMapAttr() section):

Quote:

Size values returned by this function may not exactly match the values
which were passed to AllocBitMap(), due to alignment restrictions.

Go to top


Re: Listbrowser inplace editable nodes
Just popping in
Just popping in


@gregthecanuck

Several AOS functions already use SetIOErr() for this purpose (not sure for reaction classes though).

Go to top


Re: [SOLVED] Listbrowser inplace editable nodes
Just popping in
Just popping in


@abalaban

Quote:

thinking again about it I'm wondering if it would not be a good idea to have a default value for that tag rather than potentially crashing ?

So true...

Go to top


Re: Listbrowser inplace editable nodes
Just popping in
Just popping in


@abalaban

What did you set for LBNCA_MaxChars ?

Go to top



TopTop
« 1 (2) 3 4 5 ... 7 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project