Changeset 23571 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/surface_base.c
- Timestamp:
- Oct 6, 2009 6:07:06 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53228
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/surface_base.c
r21731 r23571 11 11 * Copyright 2007 Henri Verbeet 12 12 * Copyright 2006-2007 Roderick Colenbrander 13 * Copyright 2009 Henri Verbeet for CodeWeavers 13 14 * 14 15 * This library is free software; you can redistribute it and/or … … 552 553 UINT usage; 553 554 555 if(!(format_desc->Flags & WINED3DFMT_FLAG_GETDC)) 556 { 557 WARN("Cannot use GetDC on a %s surface\n", debug_d3dformat(format_desc->format)); 558 return WINED3DERR_INVALIDCALL; 559 } 560 554 561 switch (format_desc->byte_count) 555 562 { … … 602 609 switch (This->resource.format_desc->format) 603 610 { 604 case WINED3DFMT_ R8G8B8:611 case WINED3DFMT_B8G8R8_UNORM: 605 612 usage = DIB_RGB_COLORS; 606 613 b_info->bmiHeader.biCompression = BI_RGB; 607 614 break; 608 615 609 case WINED3DFMT_ X1R5G5B5:610 case WINED3DFMT_ A1R5G5B5:611 case WINED3DFMT_ A4R4G4B4:612 case WINED3DFMT_ X4R4G4B4:613 case WINED3DFMT_ R3G3B2:614 case WINED3DFMT_ A8R3G3B2:616 case WINED3DFMT_B5G5R5X1_UNORM: 617 case WINED3DFMT_B5G5R5A1_UNORM: 618 case WINED3DFMT_B4G4R4A4_UNORM: 619 case WINED3DFMT_B4G4R4X4_UNORM: 620 case WINED3DFMT_B2G3R3_UNORM: 621 case WINED3DFMT_B2G3R3A8_UNORM: 615 622 case WINED3DFMT_R10G10B10A2_UNORM: 616 623 case WINED3DFMT_R8G8B8A8_UNORM: 617 case WINED3DFMT_ X8B8G8R8:618 case WINED3DFMT_ A2R10G10B10:619 case WINED3DFMT_ R5G6B5:624 case WINED3DFMT_R8G8B8X8_UNORM: 625 case WINED3DFMT_B10G10R10A2_UNORM: 626 case WINED3DFMT_B5G6R5_UNORM: 620 627 case WINED3DFMT_R16G16B16A16_UNORM: 621 628 usage = 0; … … 760 767 static const struct d3dfmt_convertor_desc convertors[] = 761 768 { 762 {WINED3DFMT_R32_FLOAT, WINED3DFMT_R16_FLOAT,convert_r32_float_r16_float},763 {WINED3DFMT_ R5G6B5, WINED3DFMT_X8R8G8B8,convert_r5g6b5_x8r8g8b8},764 {WINED3DFMT_ A8R8G8B8, WINED3DFMT_X8R8G8B8,convert_a8r8g8b8_x8r8g8b8},769 {WINED3DFMT_R32_FLOAT, WINED3DFMT_R16_FLOAT, convert_r32_float_r16_float}, 770 {WINED3DFMT_B5G6R5_UNORM, WINED3DFMT_B8G8R8X8_UNORM, convert_r5g6b5_x8r8g8b8}, 771 {WINED3DFMT_B8G8R8A8_UNORM, WINED3DFMT_B8G8R8X8_UNORM, convert_a8r8g8b8_x8r8g8b8}, 765 772 }; 766 773 … … 803 810 source->currentDesc.Height, to_fmt, TRUE /* lockable */, TRUE /* discard */, 0 /* level */, &ret, 804 811 0 /* usage */, WINED3DPOOL_SCRATCH, WINED3DMULTISAMPLE_NONE /* TODO: Multisampled conversion */, 805 0 /* MultiSampleQuality */, IWineD3DSurface_GetImplType((IWineD3DSurface *) source), NULL /* parent */); 812 0 /* MultiSampleQuality */, IWineD3DSurface_GetImplType((IWineD3DSurface *) source), 813 NULL /* parent */, &wined3d_null_parent_ops); 806 814 if(!ret) { 807 815 ERR("Failed to create a destination surface for conversion\n");
Note:
See TracChangeset
for help on using the changeset viewer.