![]() |
|
Allegro 4.9.8 |
Elias
Member #358
May 2000
|
For X11, if we want to support the classic middle-click selection, we'll have to tap into Allegro's X11 events handler: http://tronche.com/gui/x/xlib/events/client-communication/selection.html It works in a kinda stupid way, whenever you paste something, X11 sends an event to the window with the current selection asking it for the data. Apparently in KDE and Gnome there also is a normal, non-stupid clipboard with persistent data (so the selection won't be gone when you close the window like with the X11 one) - haven't found out yet how to access it though. Maybe we only should support the normal clipboard and not the middle-click one.. but from example code I've seen so far both are entangled somehow :/ -- |
Don Freeman
Member #5,110
October 2004
![]() |
I have an early version for getting text, in Windows anyway. a5_clipboard.h:
a5_clipboard_win.c:
Do you think I should add an option to limit the amount of text that is returned? -- |
Thomas Fjellstrom
Member #476
June 2000
![]() |
Windows unicode is likely UCS-2, or UTF-16 (whatever), allegro deals in UTF-8, you may have to use uconvert (if peter kept it around) to convert to utf8. -- |
Evert
Member #794
November 2000
![]() |
Quote: Do you think I should add an option to limit the amount of text that is returned? Arbitrary limits are evil, so no, you shouldn't. But who is responsible for freeing the pointer returned by al_get_clipboard_text? If it's a static buffer that changes the next time GetClipboardData/GlobalLock are called, you should strdup it. Quote: I still haven't figured how to get unicode text (like from character map) to show up correctly...even using ALLEGRO_USTR. Any suggestions? It should work AFAIK if you use a char * pointing to a UTF8 encoded string. Doesn't that work for you? Have you checked the encoding? |
Don Freeman
Member #5,110
October 2004
![]() |
Ok...I'll look at it later. Thanks for the comments.:D -- |
axilmar
Member #1,204
April 2001
|
Demo not working for me (VS 2009). It stops when trying to load the sound file "big_explosion.ogg", although the file is in the proper place. |
Trent Gamblin
Member #261
April 2000
![]() |
Do you have OGG vorbis support compiled in? You need libogg and libvorbis for that.
|
axilmar
Member #1,204
April 2001
|
Quote: Do you have OGG vorbis support compiled in? You need libogg and libvorbis for that. I don't think so. Is it a prerequisite for Allegro 5? or is it only for the demo? |
Thomas Fjellstrom
Member #476
June 2000
![]() |
Its a prerequisite for the demo, and any sound playing example you want to be able to load ogg. -- |
axilmar
Member #1,204
April 2001
|
Ok, libogg and libvorbis downloaded, compiled and installed. What now? how do I add support for it for the demo? or is it automatic? EDIT: The code that fails is this one: The filename is "c:\dev\allegro-4.9.8\demo\data\sfx\big_explosion.ogg". The function strrchr returns null, and therefore the sample can not be loaded. |
Thomas Fjellstrom
Member #476
June 2000
![]() |
You re ran cmake for allegro, and re compiled it right? Quote: The function strrchr returns null, and therefore the sample can not be loaded. It can't return NULL in that case, it'll find the last . and return that. You must be mistaken on what is actually going on there. -- |
axilmar
Member #1,204
April 2001
|
Nope. I am about to do that again. EDIT: Bleh, I built libvorbis but cmake can't find it, although I added the correct paths...it's late, and I am tired of the the command line already. The command line sucks. No demo for me... |
kenmasters1976
Member #8,794
July 2007
|
Which Addons doesn't require any external libraries?. Right now I have only built the core Allegro lib and the Primitives addon, but I'm thinking into building the rest.
|
Don Freeman
Member #5,110
October 2004
![]() |
I was wondering if I could get some people to test this for me. I've noticed different behavior on two different machines, both with the same OS (Windows Server 2008). I am guessing this is a driver issue, maybe ATI Vs. nVidia . The main problem is that my ATI driver (at least in my mind so far) is causing this to fail when loading the Terrain.png file. I can not seem to get debug info from it either. The debugger says that there are no symbols for it...allegro was compiled with debug options as well as the program, so I assume that it is a failure in one of the other modules, perhaps something from DirectX. I can switch the Terrain.png to be a grid of 10x10 tiles and it works. It is almost as if it is running out of memory, but that can't be...I have over a gig in each machine and plenty of free memory. I am thinking it has something to do with texture memory and the way the two (nVidia and ATI) handle that. I am just trying to figure what the main deal is here. I've also noticed that on my ATI system, the drawing functions look different as well. The drawing functions look fine in other programs I've made between both systems, so that is weird. It is the exact same program, but the al_draw_rounded_rect looks different on both systems. It looks correct on my nVidia card, but the rounded rects look slightly scewed. If you decide to test this for me, please let me know what system (OS and version) and what kind of video card type and video memory your system has. Note: this was tested with Allegro-4.9.8, so that is why I am posting it here. I want to see if this is a bug with Allegro, or something with ATI or nVidia drivers. Here is the Visual Studio 2008 project files, source code, and data needed. For those who do test it, spacebar pops up the terrain to 'select' (enter tile brush selection mode) and esc exits the program. When in 'select' mode, arrow keys move the selection cursor around, enter selects a tile brush, and esc exits that mode. Thanks guys.:-* Edit: The standard no screen shot, no download...so here ya go: -- |
MiquelFire
Member #3,110
January 2003
![]() |
Um, yea, I'll test when I feel like downloading the dlls --- |
Don Freeman
Member #5,110
October 2004
![]() |
Anyone?! I want to see if this is something with the way the new API deals with hardware calls, or if it is a driver issue...and if it can be fixed. Maybe this could be addressed in the FAQ or other area.::) -- |
Neil Walker
Member #210
April 2000
![]() |
Can you statically link everything or point me in the direction of the allegro dlls? I've got the depencies from here http://www.allegro.cc/forums/thread/599504/798701#target But they only include non-allegro stuff. Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Trent Gamblin
Member #261
April 2000
![]() |
allegro5.org has binaries.
|
Trezker
Member #1,739
December 2001
![]() |
What's the... purpose of http://allegro5.org ? |
Thomas Fjellstrom
Member #476
June 2000
![]() |
Right now its purpose is news on Allegro 5 and Binaries. We (trent and I) don't really have much news to post... Later on it will probably just be turned into an alias for liballeg.org once allegro 5 is released. The FAQ seems to be working fine though. Its just that there are no questions -- |
Elias
Member #358
May 2000
|
Trent registered liballeg.org and allegro5.org. I think it would be best if we made those the official addresses. "alleg.sf.net" ties us to SF (probably Allegro's web hosting will never change to anything else - but still no reason to have it as official address). Right now the "official" address is still talula.something.really.long.nobody.can.remember - which is kinda stupid. -- |
Trezker
Member #1,739
December 2001
![]() |
Yeah I like allegro5.org, has a good solid feel to it. |
kenmasters1976
Member #8,794
July 2007
|
The program crashes on my machine and I don't have some of the needed addons installed to try and build it myself on MinGW. Sorry.
|
Trent Gamblin
Member #261
April 2000
![]() |
If anyone wants to work on the FAQ or any other areas of allegro5.org let me know. I can handle the binary releases.
|
Neil Walker
Member #210
April 2000
![]() |
Don said: Anyone?!
Right I've got 28 dlls in my folder now! I remember the days when you could ship an exe and a dat Anyway, as soon as I start the program I get an exception. Here is my directory folder in case I've missed something: a5_acodec-4.9.8.dll Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
|
|