Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 30, 2009 12:27:34 GMT -5
Hi Guilect,
a high resolution of 1280x1024 is not possible here. (full screen)! do i have something overlook ? Peter
|
|
|
Post by Guilect on Jul 31, 2009 16:20:04 GMT -5
Hi Peter,
I just tried a test of that resolution and it worked for me.
I used the example that comes with Brutus2D "examples\animated\simpleanim.b2d"
I changed the line : if (graphics.initialize <> True) then exit sub to if (graphics.initialize( 1280, 1024, false) <> True) then exit sub
If it does not work for you, perhaps it is a limit of either your graphics card or of the monitor?
Maybe someone else can give this resolution a try and see if it works. I see no reason why it would not.
Regards, Guilect
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 1, 2009 6:21:06 GMT -5
Hi Guilect,
is very strange here, i get a screen, which is not beginning at 0, 0. Other Basic dialects show a correct screen for me! The screen is displaced at 100, 100! No intuitiveness about it.
|
|
|
Post by Guilect on Aug 1, 2009 11:21:52 GMT -5
I will check more closely to see if I have any pixel offset.
|
|
|
Post by Guilect on Aug 2, 2009 9:08:21 GMT -5
I checked the placement of a primative: graphics.SetRect 0,0,2,2,&hFFFF0000 and it is placed at the upper left corner of the full screen created by graphics.initialize( 1280, 1024, false).
So, I am not able to reproduce your problem.
Perhaps you could come up with a minimal amount of code that produces the problem for you and post it so that I can try it.
Here is my test code:
option explicit
dim bRunning bRunning = True
dim background
sub main()
if graphics.initialize( 1280, 1024, false) <> True then exit sub key.initialize do while bRunning = True if key.pressed(1) or key.pressed(0) = True then bRunning = False graphics.clear 255 ' dots (pixels) (well a little bigger than a pixel ' so you can see them ' next line sets a red dot at 0,0 graphics.SetRect 0,0,2,2,&hFFFF0000 'graphics.SetRect 50,400,2,2,&hFF00FFFF 'graphics.SetBox 50,10,200,200,&hFF000000 ' now a circle 'graphics.SetCircle 320,240, 200,&hFFFFFF00 'graphics.SetLine 20,20, 200, 440, &hFFFF00FF 'graphics.setline 100, 130, 100, 100, &hFF0000FF ' vertical line 'graphics.setline 100, 180, 40, 180, &hFF0000FF ' horizontal line graphics.display loop key.terminate graphics.terminate
end sub
Call Main()
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 2, 2009 16:11:37 GMT -5
|
|
|
Post by Guilect on Aug 3, 2009 19:04:18 GMT -5
Hi Peter,
I looked at the picture. That is wierd.
I did another test where I set my desktop resolution to 1280x1024; previously it had been at 1024x768. Frequency has always been 75Hz. I ran my test program above. It displays a full screen properly. I am using a nVidia GeForce2 and a Gateway monitor. So there is some difference between our computers. Monitor, graphics card, or settings. It is hard for me to guess at what might be going on since I can not reproduce the issue here.
What resolution and frequency are your desktop set at?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 4, 2009 3:32:20 GMT -5
Hi Guilect,
my resolution is 1152 x 864. Frequency = 85 Hz.
This is really wired, because it is running with C++, Assembler,Basic4gl,Coolbasic in a proper manner.
I think, that i will take another resolution. 1024x768
Regards Peter
|
|
|
Post by Guilect on Aug 11, 2009 15:36:29 GMT -5
I have looked over the source code and nothing looks out of place. Have you tried other resolutions, frequencies, etc.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 12, 2009 8:17:17 GMT -5
yes Guilect ! I tryed the resolution: 1280x960 & 1360x768 But without success.
Only the high resolution 1024x768 was going correct! I am thinking that i use this one, i must the whole graphics mutate in another size.
Does not matter because we have time enough! Regards Peter
|
|