# Final directx version info

**URL:** <https://discourse.libsdl.org/t/final-directx-version-info/3701>\
**Category:** SDL Development\
**Created:** [January 5, 2001, 8:38am UTC](https://discourse.libsdl.org/t/final-directx-version-info/3701 "2001-01-05T08:38:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete\_Shinners](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/pete_shinners/32/137_2.png) [@Pete\_Shinners](https://discourse.libsdl.org/u/Pete_Shinners)\
**Post date:** [January 5, 2001, 8:38am UTC](https://discourse.libsdl.org/t/final-directx-version-info/3701/1 "2001-01-05T08:38:32Z")

</div>

ok, good news for us windows users. i’ve got a patch here  
that makes some small changes (only #defines and #ifdefs)  
to two of the directx files in sdl.

these changes allow sdl to be compiled using either directx  
5 or 7. no matter which version it is compiled against, it  
can still run fine on other directx versions. the code works  
as is with either sdk, so no need for preprocessor fiddling.

when SDL is compiled against directx5 or running on directx5  
the hardware gamma controls will not be available. other than  
that it works groovy.

this is my first real patch attempt. i used cvs to create this  
for me, but it could be entirely wrong (?) just in case it  
doesn’t work, i’ve taken the two changed files and zipped  
them up together at the following url.

[http://pygame.seul.org/ftp/contrib/sdl\_dx\_fix.zip](http://pygame.seul.org/ftp/contrib/sdl_dx_fix.zip)

begin 666 fix\_sdl\_dx.diff  
M26YD97 at Z(’-R8R]V:61E;R]W:6YD\>#4O4T1,7V1X-79I9&5O+F,-“CT]/3T]  
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]  
M/3T]/3T]/3T]/3T]/3T]/3T-“E)#4R!F:6QE.B O8W9S+U-$3”]S\<F,O=FED  
M96\O=VEN9’@U+U-$3%]D\>#5V:61E;RYC+‘8-"G)E=’)I979I;F\<@\<F5V:7-I  
M;VX@,2XQ,2XR+C,P#0ID:69F(“UU(“UR,2XQ,2XR+C,P(%-$3%]D\>#5V:61E  
M;RYC#0HM+2T@\<W)C+W9I9&5O+W=I;F1X-2]31$Q?9’@U=FED96\N8PDR,# P  
M+S$R+S$S(# X.C(T.C$Y"3$N,3$N,BXS, T**RLK(’-R8R]V:61E;R]W:6YD  
M\>#4O4T1,7V1X-79I9&5O+F,),C P,2\P,2\P-2 P.#HS-3HS, at T_0$ @+30P  
M,RPW("LT,#,L-R! 0 T_(’-T871I8R!I;G0 at 1%@U7U-E=$-O;&]R\<RA?5$A)  
M4RP@:6YT(&9I\<G-T8V]L;W(L(&EN="!N8V]L;W)S+ T\*( D)"2!31$Q?0V]L  
M;W(@_F-O;&]R\<RD[#0H@\<W1A=&EC(‘9O:60 at 1%@U7U-W87!‘86UM82A?5$A)  
M4RD[#0HM(VEF($1)4D5#5$1205=?5D524TE/3B ^(#!X-3 P#0HK(VEF9&5F  
M($E)1%])1&ER96-T1’)A=T=A;6UA0V]N=’)O; T_(’-T871I8R!I;G0 at 1%@U  
M7U-E=$=A;6UA4F%M\<"A?5$A)4RP at 56EN=#$V("IR86UP\*3L-"B!S=&%T:6,@  
M:6YT($18-5]'971’86UM85)A;7 H7U1(25,L(%5I;G0Q-B J\<F%M\<“D[#0H@  
M(V5N9&EF#0I 0” M-3 at Y+#\<@_S4X.2PW($! #0H@"61E=FEC92T^56YL;V-K  
M2%=3=7)F86-E(#T at 1%@U7U5N;&]C:TA74W5R9F%C93L-"B )9&5V:6-E+3Y&  
M;&EP2%=3=7)F86-E(#T at 1%@U7T9L:7!(5U-U\<F9A8V4#0H@"61E=FEC92T^  
M1G)E94A74W5R9F%C92 [F86-E.PT](http://F86-E.PT)_+2-I9B!$25)%  
M0U1$4D%77U9%4E-)3TX@/B P\>#4P, T**R-I9F1E9B!)241?241I\<F5C=$1R  
M87='86UM84-O;G1R;VP-“B )9&5V:6-E+3Y3971’86UM85)A;7 @/2!$6#5?  
M4V5T1V%M;6%[286UP.PT](http://286UP.PT)\*( ED979I8V4M/D=E=$=A;6UA4F%M\<” ]($18-5]'  
M971’86UM85)A;7 [#0H@(V5N9&EF#0I 0” M-SDS+#\<@_S\<Y,RPY($! #0H@  
M"2\J(%1H:7,@;F5E9’,@=&@8F4 at 1$1#05!37T18-2!F;W(@=&AE($1I\<F5C  
M=$1R87\<R(&EN=&5R9F%C92 J+PT_(”-I9B!$25)%0U1$4D%77U9%4E-)3TX@  
M/#T@,’@S,# -“B C97)R;W(@66]U\<B!V97)S:6]N(&]F($1I\<F5C=%@@;75S  
M=”!B92!G\<F5A=&5R(‘1H86X@;W(@97%U86P@=&@-2XP#0HM(V5L:68 at 1$E2  
M14-41%)!5U]615)324].(#P](#!X-3 P#0HK(V5N9&EF#0HK(VEF;F1E9B!)  
M241?241I\<F5C=$1R87=‘86UM84-O;G1R;VP-"BL)+RII9B!G86UM82!I\<R!U  
M;F1E9FEN960@=&AE;B!W92!R96%L;‘D@:&%V92!D:7)E8W1X(#P](#!X-3 P  
M_B-"B )1$1#05!3($1$0V%P\<SL-"B C96QS90T_( E$1$-!4%-?1%@U($1$  
M0V%P\<SL-"D! ("TQ.38S+#\<@_S$Y-C4L-R! 0 T_(‘T-"B -"B O_B!'86UM  
M82!C;V1E(&ES(&]N;'D at 879A:6QA8FQE(&]N($1I\<F5C=%@@-R!A;F0@;F5W  
M97(@B-"BTC:68 at 1$E214-41%)!5U]615)324].(#X@,’@U,# -“BLC:69D  
M968 at 24E$7TE$:7)E8W1$\<F%W1V%M;6%#;VYT\<F]L#0H@#0H@\<W1A=&EC(&EN  
M=”!$6#5?4V5T1V%M;6%286UP%]42$E3+"!5:6YT,38@G)A;7 I#0H@\>PT  
M0$ @+3(P,S0L-R K,C S-BPW($! #0H@"7)E='5R;B H\<F5S=6QT(#T]($1$  
M7T]+2 \_(# @.B M,3L-“B!]#0H@#0HM(V5N9&EF(”\J($1)4D5#5$1205=?  
M5D524TE/3B ^(#!X-3 P(“HO#0HK(V5N9&EF(”\J($E)1%])1&ER96-T1’)A  
M=T=A;6UA0V]N=’)O;" J+PT( T_(‘9O:60 at 1%@U7U9I9&5O475I="A?5$A)  
M4RD-"B![#0I);F1E\>#H@\<W)C+W9I9&5O+W=I;F1X-2]D:7)E8W1X+F at -"CT]  
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]  
M/3T]/3T]/3T]/3T]/3T]/3T]/3T-“E)#4R!F:6QE.B O8W9S+U-$3”]S\<F,O  
M=FED96\O=VEN9’@U+V1I\<F5C=’@N:"QV#0IR971R:65V:6YG(’)E=FES:6]N  
M(#$N,2XR+C(-"F1I9F8 at +74@+7(Q+C$N,BXR(&1I\<F5C=’@N: T\*+2TM(’-R  
M8R]V:61E;R]W:6YD\>#4O9&ER96-T\>“YH"3(P,# O,3(O,CD@,#@Z-#DZ,38)  
M,2XQ+C(N, at T\*\*RLK(’-R8R]V:61E;R]W:6YD\>#4O9&ER96-T\>“YH"3(P,#$O  
M,#$O,#4@,#@Z,S4Z,S(-“D! (“TV.2PW(“LV.2PW($! #0H at +RH@1&ER96-T  
M6”!H96%D97)S(“AI9B!I=”!I\<VXG=”!I;F-L=61E9"P at 22!H879E;B=T('1E  
M\<W1E9”!I=”!Y970I#0H@(“HO#0H at +RH@5V4@;F5E9”!T:&5S92!D969I;F5S  
M('1O(&UA\<FL@=VAA=”!V97)S:6]N(&]F($1I\<F5C=%@@05!)(’=E('5S92 J  
M+PT\*+2-D969I;F4 at 1$E214-41%)!5U]615)324].(” P\># U,# -“BLC9&5F  
M:6YE($1)4D5#5$1205=?5D524TE/3B @,’@P-S P#0H@(V1E9FEN92!$25)%  
M0U133U5.1%]615)324].(#!X,#4P, T\*(”-D969I;F4 at 1$E214-424Y0551?  
35D524TE/3B P\># U,# -“B -”@``  
`  
end

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [January 5, 2001, 5:34pm UTC](https://discourse.libsdl.org/t/final-directx-version-info/3701/2 "2001-01-05T17:34:14Z")

</div>

> ok, good news for us windows users. i’ve got a patch here  
> that makes some small changes (only #defines and #ifdefs)  
> to two of the directx files in sdl.

Thanks Pete, your diff worked perfectly, and I’ve built SDL  
binaries with the fixed code. I’ll be working on the SDL 1.1.7  
release today.

Thanks!  
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
