Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Using allready loaded tile surface to load in mapeditor


damian666
 Share

Recommended Posts

so, im looking at the source, and i see it is really made stupid.

it loads all graphic files in memory, but instead of using them to load in for example, mapeditor, it reloads the real graphic in the form >.<

so, i want to load the mapeditor with the existing tile surfaces. but seeying im really bad at DX, i need a bit of help.

this is what i tried, and failed btw xD

```
For I = 0 To 10
        If frmMapEditor.Option1(I).value = True Then

            Call BltToDC(frmMapEditor.picBackSelect.hDC, DD_TileSurf(I), frmMapEditor.picBackSelect.hDC)

            EditorSet = I
        End If
    Next

```
question is, is this the way to use it? i dont think so to be honest, and also, how can i retrieve the height and width of the surface so i can set that?

Edit, updated code, this is the thing i need to use i believe, but it now tells me that blttodc is not recognized, is there any
referance i have to add?

any help is appriciated ^^

Damian666
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...