diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-24 18:02:06 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-24 18:02:06 +0000 |
commit | 89fdb71c854b2b5081e1cb5ec3e26e1bb93e3b60 (patch) | |
tree | 3659689b9c8e790b26d6637ed592e395a1c66c0a /Game/Code/Classes/UWebCam.pas | |
parent | 9792c8c1af8dc0733e3851a2f094897590b25605 (diff) | |
download | usdx-89fdb71c854b2b5081e1cb5ec3e26e1bb93e3b60.tar.gz usdx-89fdb71c854b2b5081e1cb5ec3e26e1bb93e3b60.tar.xz usdx-89fdb71c854b2b5081e1cb5ec3e26e1bb93e3b60.zip |
- fix: crash at startup (my fault)
- fix: it was possible to add non-medley songs to the medley playlist -> crash in singscreen
- updated polish language (thx to Pit33)
- deactivate all elements (but not background/video) in singscreen (with "N")
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2751 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes/UWebCam.pas')
-rw-r--r-- | Game/Code/Classes/UWebCam.pas | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Game/Code/Classes/UWebCam.pas b/Game/Code/Classes/UWebCam.pas index 5abb7622..9457a28d 100644 --- a/Game/Code/Classes/UWebCam.pas +++ b/Game/Code/Classes/UWebCam.pas @@ -75,6 +75,9 @@ const width = 320;
height = 240;
+var
+ IWebCamDevice: TList;
+
begin
if WebCamReady then
exit;
@@ -84,7 +87,8 @@ begin if(Ini.EnableWebCam=0) then
exit;
- if (Length(GetCapDevices())-1 < Ini.WebCamID) then
+ GetCapDevices(IWebCamDevice);
+ if (Length(IWebCamDevice)-1 < Ini.WebCamID) then
Exit;
try
|