| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		hcavolsdsadgadsg I'm a spammer
  Reputation: 26
  Joined: 11 Jun 2007 Posts: 5801
 
  | 
		
			
				 Posted: Fri Jun 27, 2008 11:33 pm    Post subject: GDI Starfield | 
				       | 
			 
			
				
  | 
			 
			
				because everyone loves starfields!
 
 
This was basically my 'LEARN SOME GDI' project, partially motivated by Wiccaan's trainer.
 
 
Some fun facts:
 
Originally it was using SetPixel, this ended up being hilariously slow. Using DIB's is probably quite literally ten times the speed, apparently using bitmaps will yield the benefit of some nice hardware acceleration.
 
 
I'm aware it comes up suspicious when scanned, it's because I merged sections to shave a meager 1kb off the filesize. It's safe, I promise!
 
 
No floats, dodged the CRT bullet for filesize, took this one instead. Relies on msvcrt.dll instead.
 
 
edit: updated, smaller, faster. woohoo.
  Last edited by hcavolsdsadgadsg on Fri Jul 04, 2008 6:09 pm; edited 1 time in total | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		DoomsDay Grandmaster Cheater
  Reputation: 0
  Joined: 06 Jan 2007 Posts: 768 Location: %HomePath%
  | 
		
			
				 Posted: Sat Jun 28, 2008 12:40 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Looks great  .
 
 
EDIT:Drag the window to the right, Leet!
  Last edited by DoomsDay on Sat Jun 28, 2008 4:16 am; edited 1 time in total | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		STN I post too much
  Reputation: 43
  Joined: 09 Nov 2005 Posts: 2676
 
  | 
		
			
				 Posted: Sat Jun 28, 2008 3:16 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				a starfield @ just 1kb. very nice indeed  .
 
 
 
PS: if you don't mind, can i have a look at source ? just want to see how you reduced the size. _________________
  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		hcavolsdsadgadsg I'm a spammer
  Reputation: 26
  Joined: 11 Jun 2007 Posts: 5801
 
  | 
		
			
				 Posted: Sat Jun 28, 2008 3:57 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | STN wrote: | 	 		  a starfield @ just 1kb. very nice indeed  .
 
 
 
PS: if you don't mind, can i have a look at source ? just want to see how you reduced the size. | 	  
 
 
The filesize for the most part came from avoiding the CRT. If you need any functionality, you can link against msvcrt.lib for the most part.
 
 
I'll elaborate more if you want tomorrow, it's 5:21 in the morning, the suns coming up, and I think it's about time I go to sleep.   | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Noz3001 I'm a spammer
  Reputation: 26
  Joined: 29 May 2006 Posts: 6220 Location: /dev/null
  | 
		
			
				 Posted: Sat Jun 28, 2008 4:01 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				| Haha, that's cool. | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		atom0s Moderator
  Reputation: 205
  Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
  | 
		
			
				 Posted: Sat Jun 28, 2008 4:28 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | Code: | 	 		  A-Squared     
 
Found nothing
 
AntiVir    
 
Found nothing
 
ArcaVir    
 
Found nothing
 
Avast    
 
Found nothing
 
AVG Antivirus    
 
Found nothing
 
BitDefender    
 
Found nothing
 
ClamAV    
 
Found nothing
 
CPsecure    
 
Found nothing
 
Dr.Web    
 
Found nothing
 
F-Prot Antivirus    
 
Found nothing
 
F-Secure Anti-Virus    
 
Found nothing
 
Fortinet    
 
Found nothing
 
Ikarus    
 
Found nothing
 
Kaspersky Anti-Virus    
 
Found nothing
 
NOD32    
 
Found nothing
 
Norman Virus Control    
 
Found nothing
 
Panda Antivirus    
 
Found nothing
 
Sophos Antivirus    
 
Found nothing
 
VirusBuster    
 
Found nothing
 
VBA32    
 
Found nothing | 	  
 
 
File appears clean. Download at your own risk! _________________
 - Retired.  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Labyrnth Moderator
  Reputation: 10
  Joined: 28 Nov 2006 Posts: 6301
 
  | 
		
			
				 Posted: Sat Jun 28, 2008 12:59 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				slocvach Lolz   
 
 
check out the edited version !
 
Hit F5 to see the attachment: | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		DoomsDay Grandmaster Cheater
  Reputation: 0
  Joined: 06 Jan 2007 Posts: 768 Location: %HomePath%
  | 
		
			
				 Posted: Sat Jun 28, 2008 2:46 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | Labyrnth wrote: | 	 		  slocvach Lolz   
 
 
check out the edited version !
 
Hit F5 to see the attachment: | 	 
  	  | Code: | 	 		  Compare: (<)C:\Documents and Settings\...\Desktop\starfield_.c (11025 bytes)
 
   with: (>)C:\Documents and Settings\...\Desktop\starfield.c (11025 bytes)
 
 
221c221
 
<   DrawTextA(dword_401B08, "\n\rLOVE AND LOVE.\n\n\r\r YES LOlz WHAT YO OWNAGE!", 45, &Rect, 0x101u);
 
---
 
>   DrawTextA(dword_401B08, "\n\rTEXT AND SHIT.\n\n\r\r HEY GUYS WHAT IS CRACKIN", 45, &Rect, 0x101u);
 
 | 	 
  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		nwongfeiying Grandmaster Cheater
  Reputation: 2
  Joined: 25 Jun 2007 Posts: 695
 
  | 
		
			
				 Posted: Sun Jun 29, 2008 12:02 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				It looks totally awesome! And if you didn't do it using SetPixel, how did you do it?
 
 
I always used pre-made starfields from programs like SWFText for my starfield needs. | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		hcavolsdsadgadsg I'm a spammer
  Reputation: 26
  Joined: 11 Jun 2007 Posts: 5801
 
  | 
		 | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		nwongfeiying Grandmaster Cheater
  Reputation: 2
  Joined: 25 Jun 2007 Posts: 695
 
  | 
		
			
				 Posted: Sun Jun 29, 2008 10:56 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Thanks! I'll read this at work   | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |