Julien Nadeau | 1 Nov 2009 01:27
Favicon

Re: demo compilation problem in mingw

On Sat, Oct 31, 2009 at 09:16:48PM +0100, Joergen Kornfeld wrote:
> Hey,
> 
> I experienced the same problem and tried an empty have_gettime.h (deleted content after ./configure).
Now, I'm getting different linking problems (during compilation of project that uses agar, agar itself
compiles fine), but probably related to the fix..
> 
>
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\libag_core.a(time_win32.o):time_win32.c:(.text+0xe)||undefined
reference to `timeBeginPeriod <at> 4'|
>
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\libag_core.a(time_win32.o):time_win32.c:(.text+0x16)||undefined
reference to `timeGetTime <at> 0'|
>
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\libag_core.a(time_win32.o):time_win32.c:(.text+0x28)||undefined
reference to `timeGetTime <at> 0'|
> 
> Compiled Agar 1.3.4 under MSYS.

Under VS2005, timeGetTime() is linked from winmm.lib. I don't know what
is the problem with this function under MSYS, but it is not needed in
any case; you should be able to remove time_win32.c from core/Makefile
and rebuild.

I'll address this with some specific configure tests for MSYS/Cygwin in
the next release.
Olivier Boudeville | 8 Nov 2009 17:34
Picon

Small patch for AG_Strcasestr + suggestions

Hello list,

(enriched mail, resent as the previous one apparently was lost due to my
using of a non-registered mail address)

The small issue I encountered with AG_Strcasestr could most probably be
easily
solved by having that function return 'const char *' instead of 'char *' in
agar/core/string_compat.h.

I made the change, rebuilt Agar flawlessly, and rebuilt user code as well,
without this time any problem.

Could this small change be integrated into upcoming versions of Agar? It
would
be convenient, as otherwise Agar will break any user code that includes
the Agar
header while using compilation flags a bit stricter than default ones.

Following patch seems to work just fine:

--- agar-1.3.4/core/string_compat.h 2009-06-22 04:58:28.000000000 +0200
+++ agar-1.3.4-improved/core/string_compat.h 2009-10-31
12:38:20.000000000 +0100
 <at>  <at>  -229,7 +229,7  <at>  <at> 
/*
* Locate a substring ignoring case.
*/
-static __inline__ char *
+static __inline__ const char *
(Continue reading)

Pawel Palucha | 30 Nov 2009 16:13
Picon
Favicon

Rotated display

Hello,

is this possible to draw on screen rotated by 90 degrees using Agar? It's
possible to rotate Linux framebuffer console so you can use rotated LCD display
('pivot') by adding "fbconn=rotate:1" to boot parameters. But it's done by
software so non-console application have to handle it by its own. 

I was searching for any info on the Agar website and looking in code around
AG_InitVideo but have found nothing.

Thank you
Pawel Palucha
Samuel Crow | 30 Nov 2009 19:12
Picon
Favicon

Re: Rotated display

Hi Pawel,

SDL doesn't support rotated displays unless you use OpenGL as a backend.  I don't know if that will be
supported in future versions of Agar though.

--Sam

----- Original Message ----
> From: Pawel Palucha <pawel@...>
> To: agar@...
> Sent: Mon, November 30, 2009 9:13:34 AM
> Subject: [Agar] Rotated display
> 
> Hello,
> 
> is this possible to draw on screen rotated by 90 degrees using Agar? It's
> possible to rotate Linux framebuffer console so you can use rotated LCD display
> ('pivot') by adding "fbconn=rotate:1" to boot parameters. But it's done by
> software so non-console application have to handle it by its own. 
> 
> I was searching for any info on the Agar website and looking in code around
> AG_InitVideo but have found nothing.
> 
> Thank you
> Pawel Palucha
> 
> _______________________________________________
> Agar mailing list
> Agar@...
> http://libagar.org/lists.html
(Continue reading)


Gmane